com.bazaarvoice.emodb.queue.core.QueueChannelConfiguration Maven / Gradle / Ivy
package com.bazaarvoice.emodb.queue.core;
import com.bazaarvoice.emodb.event.api.ChannelConfiguration;
import java.time.Duration;
public class QueueChannelConfiguration implements ChannelConfiguration {
// Amazon SQS keeps messages for 14 days. Seems like a reasonable choice...
private static final Duration TTL = Duration.ofDays(14);
@Override
public Duration getEventTtl(String queue) {
return TTL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy