public interface PushStreamContext<T>
| 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
|
QueuePolicyOption |
getQueuePolicyOption()
Returns the used queue policy option
|
java.util.concurrent.ScheduledExecutorService |
getScheduler()
Returns the scheduled executor to be used
|
int getBufferSize()
PushStream. Valid values are larger than 0int getParallelism()
java.util.concurrent.ExecutorService getExecutor()
java.util.concurrent.ScheduledExecutorService getScheduler()
java.util.concurrent.BlockingQueue<<any>> getBufferQueue()
<any> getQueuePolicy()
QueuePolicyOption getQueuePolicyOption()
<any> getPushbackPolicy()
PushbackPolicyOption getPushbackPolicyOption()
java.lang.Long getPushbackPolicyOptionTime()
<any> getAcknowledgeFilter()
<any> getAcknowledgeFunction()
<any> getNAcknowledgeFunction()
java.util.function.BiConsumer<java.lang.Throwable,T> getAcknowledgeErrorFunction()
<U extends java.util.concurrent.BlockingQueue<<any>>> <any> getPushbackPolicyByName()
PushbackPolicy.
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 IllegalArgumentExceptionPushbackPolicyData In Motion Consulting GmbH