List of usage examples for com.amazonaws.services.sqs.buffered QueueBufferConfig QueueBufferConfig
public QueueBufferConfig()
From source file:io.relution.jenkins.awssqs.factories.SQSFactoryImpl.java
License:Apache License
private QueueBufferConfig getQueueBufferConfig(final io.relution.jenkins.awssqs.interfaces.SQSQueue queue) { final QueueBufferConfig config = new QueueBufferConfig(); // TODO Add more options config.setLongPollWaitTimeoutSeconds(queue.getWaitTimeSeconds()); config.setLongPoll(true);/*w w w . ja v a2 s . com*/ return config; }
From source file:io.relution.jenkins.scmsqs.factories.SQSFactoryImpl.java
License:Apache License
private QueueBufferConfig getQueueBufferConfig(final SQSQueue queue) { final QueueBufferConfig config = new QueueBufferConfig(); // TODO Add more options config.setLongPollWaitTimeoutSeconds(queue.getWaitTimeSeconds()); config.setLongPoll(true);//w w w . j a va 2s . co m return config; }