public class OptionPushStreamContext<T> extends java.lang.Object implements PushStreamContext<T>, PushStreamConstants
PushStreamContext that gets the information out of an property mapPROP_ACK_CONSUMER, PROP_ACK_ERROR, PROP_ACK_FILTER, PROP_BUFFER_QUEUE, PROP_BUFFER_SIZE, PROP_EXECUTOR, PROP_NACK_CONSUMER, PROP_PARALLELISM, PROP_PUSHBACK_POLICY, PROP_PUSHBACK_POLICY_OPTION, PROP_PUSHBACK_POLICY_OPTION_BY_NAME, PROP_PUSHBACK_POLICY_TIME, PROP_QUEUE_POLICY, PROP_QUEUE_POLICY_BY_NAME, PROP_QUEUE_POLICY_OPTION, PROP_SCHEDULED_EXECUTOR, PROP_SES_BUFFER_QUEUE, PROP_SES_BUFFER_SIZE, PROP_SES_QUEUE_POLICY, PROP_SES_QUEUE_POLICY_BY_NAME, PROP_SES_QUEUE_POLICY_OPTION| Constructor and Description |
|---|
OptionPushStreamContext(java.util.Map<java.lang.String,java.lang.Object> options)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.function.BiConsumer<java.lang.Throwable,T> |
getAcknowledgeErrorFunction()
Returns the consumer for the acknowledge error function
|
<any> |
getAcknowledgeFilter()
Returns the acknowledge filter predicate
|
<any> |
getAcknowledgeFunction()
Returns the consumer for the acknowledge function
|
java.util.concurrent.BlockingQueue<<any>> |
getBufferQueue()
Returns a buffer queue to be used
|
int |
getBufferSize()
Returns the buffer size, that should be used in the
PushStream. |
java.util.concurrent.ExecutorService |
getExecutor()
Returns the executor service to be used to create the threads
|
<any> |
getNAcknowledgeFunction()
Returns the consumer for the negative acknowledge function
|
int |
getParallelism()
Returns the parallelism.
|
<any> |
getPushbackPolicy()
Returns the pushback policy
|
<U extends java.util.concurrent.BlockingQueue<<any>>> |
getPushbackPolicyByName()
Returns the ready configured
PushbackPolicy. |
PushbackPolicyOption |
getPushbackPolicyOption()
Returns the pushback policy option
|
java.lang.Long |
getPushbackPolicyOptionTime()
Returns the used pushback policy option time
|
<any> |
getQueuePolicy()
Returns the queue policy
|
<any> |
getQueuePolicyByName()
Returns the queue policy by name
|
QueuePolicyOption |
getQueuePolicyOption()
Returns the used queue policy option
|
java.util.concurrent.ScheduledExecutorService |
getScheduler()
Returns the scheduled executor to be used
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueuePolicyByNamepublic OptionPushStreamContext(java.util.Map<java.lang.String,java.lang.Object> options)
public int getBufferSize()
PushStreamContextPushStream. Valid values are larger than 0getBufferSize in interface PushStreamContext<T>public int getParallelism()
PushStreamContextgetParallelism in interface PushStreamContext<T>public java.util.concurrent.ExecutorService getExecutor()
PushStreamContextgetExecutor in interface PushStreamContext<T>public java.util.concurrent.ScheduledExecutorService getScheduler()
PushStreamContextgetScheduler in interface PushStreamContext<T>public java.util.concurrent.BlockingQueue<<any>> getBufferQueue()
PushStreamContextgetBufferQueue in interface PushStreamContext<T>public <any> getQueuePolicy()
PushStreamContextgetQueuePolicy in interface PushStreamContext<T>public QueuePolicyOption getQueuePolicyOption()
PushStreamContextgetQueuePolicyOption in interface PushStreamContext<T>public <any> getPushbackPolicy()
PushStreamContextgetPushbackPolicy in interface PushStreamContext<T>public PushbackPolicyOption getPushbackPolicyOption()
PushStreamContextgetPushbackPolicyOption in interface PushStreamContext<T>public <U extends java.util.concurrent.BlockingQueue<<any>>> <any> getPushbackPolicyByName()
PushStreamContextPushbackPolicy.
The name must be an enum of PushbackPolicyOption or GeckoPushbackPolicyOption. If none is found a IllegalArgumentException is thrown.
This requires, that a pushback option time is configured as well. If not, this will throw a IllegalArgumentExceptiongetPushbackPolicyByName in interface PushStreamContext<T>PushbackPolicypublic java.lang.Long getPushbackPolicyOptionTime()
PushStreamContextgetPushbackPolicyOptionTime in interface PushStreamContext<T>public <any> getAcknowledgeFilter()
PushStreamContextgetAcknowledgeFilter in interface PushStreamContext<T>public <any> getAcknowledgeFunction()
PushStreamContextgetAcknowledgeFunction in interface PushStreamContext<T>public <any> getNAcknowledgeFunction()
PushStreamContextgetNAcknowledgeFunction in interface PushStreamContext<T>public java.util.function.BiConsumer<java.lang.Throwable,T> getAcknowledgeErrorFunction()
PushStreamContextgetAcknowledgeErrorFunction in interface PushStreamContext<T>public <any> getQueuePolicyByName()
PushStreamContextgetQueuePolicyByName in interface PushStreamContext<T>Data In Motion Consulting GmbH