in src/main/java/com/amazonaws/services/sqs/AmazonSQSIdleQueueDeletingClient.java [100:120]
public AmazonSQSIdleQueueDeletingClient(AmazonSQS sqs, String queueNamePrefix, Long heartbeatIntervalSeconds) {
super(sqs);
if (queueNamePrefix.isEmpty()) {
throw new IllegalArgumentException("Queue name prefix must be non-empty");
}
this.queueNamePrefix = queueNamePrefix;
if (heartbeatIntervalSeconds != null) {
if (heartbeatIntervalSeconds < Constants.HEARTBEAT_INTERVAL_SECONDS_MIN_VALUE) {
throw new IllegalArgumentException("Heartbeat Interval Seconds: " +
heartbeatIntervalSeconds +
" must be equal to or bigger than " +
Constants.HEARTBEAT_INTERVAL_SECONDS_MIN_VALUE);
}
this.heartbeatIntervalSeconds = heartbeatIntervalSeconds;
} else {
this.heartbeatIntervalSeconds = Constants.HEARTBEAT_INTERVAL_SECONDS_DEFAULT;
}
}