Example usage for com.amazonaws.services.sqs.buffered QueueBufferConfig QueueBufferConfig

List of usage examples for com.amazonaws.services.sqs.buffered QueueBufferConfig QueueBufferConfig

Introduction

In this page you can find the example usage for com.amazonaws.services.sqs.buffered QueueBufferConfig QueueBufferConfig.

Prototype

public QueueBufferConfig() 

Source Link

Usage

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;
}