public class PushStreamHelper extends java.lang.Object implements PushStreamConstants
PROP_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 |
|---|
PushStreamHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> <any> |
configureEventSource(<any> builder,
SimplePushEventSourceContext<T> context)
Configures an
BufferBuilder with the given PushStreamContext |
static <T> <any> |
configurePushStreamBuilder(<any> builder,
PushStreamContext<T> context)
Configures an
PushStreamBuilder with the given PushStreamContext |
static <T> <any> |
configurePushStreamBuilder(<any> source,
PushStreamContext<T> context)
|
static <T> <any> |
createPushStream(<any> builder,
PushStreamContext<T> context)
Creates a
PushStream instance out of the given configuration and builder |
static <T> <any> |
createPushStream(<any> source,
PushStreamContext<T> context)
Creates a
PushStream instance out of the given configuration and PushEventSource |
static <T> <any> |
createSimpleEventSource(java.lang.Class<T> messageType,
SimplePushEventSourceContext<T> context)
Creates a
SimplePushEventSource event source for the given type |
static <T> AcknowledgingEventSource<T> |
fromClass(java.lang.Class<T> type,
PushStreamContext<T> context)
Creates a acknowledging event source for the class type
|
static <T> AcknowledgingEventSource<T> |
fromSimpleEventSource(<any> eventSource,
PushStreamContext<T> context)
Creates a acknowledging event source for the simple push event source
|
static <T> SimplePushEventSourceContext<T> |
getEventSourceContext(java.util.Map<java.lang.String,java.lang.Object> options)
Create a
SimplePushEventSourceContext context out of the options map |
static <T> PushStreamContext<T> |
getPushStreamContext(java.util.Map<java.lang.String,java.lang.Object> options)
Create a
PushStreamContext out of the options map |
static java.util.Map<java.lang.String,java.lang.Object> |
getPushStreamOptions(PushStreamContext<?> context)
Create an options map out of the
PushStreamContext. |
static java.util.Map<java.lang.String,java.lang.Object> |
getSimpleEventSourceOptions(SimplePushEventSourceContext<?> context)
Create an options map out of the
PushStreamContext. |
public static <T> <any> createPushStream(<any> builder,
PushStreamContext<T> context)
PushStream instance out of the given configuration and builderbuilder - the PushStreamBuilder instance, must not be nullcontext - the PushStreamContext with the configuration dataPushStream instancepublic static <T> <any> createPushStream(<any> source,
PushStreamContext<T> context)
PushStream instance out of the given configuration and PushEventSourcesource - the PushEventSource instance, must not be nullcontext - the PushStreamContext with the configuration dataPushStream instancepublic static <T> <any> configurePushStreamBuilder(<any> builder,
PushStreamContext<T> context)
PushStreamBuilder with the given PushStreamContextbuilder - the PushStreamBuilder instance, must not be nullcontext - the PushStreamContext with the configuration dataPushStreamBuilder instancepublic static <T> <any> configurePushStreamBuilder(<any> source,
PushStreamContext<T> context)
source - the PushEventSource instance, must not be nullcontext - the PushStreamContext with the configuration dataPushStreamBuilder instancepublic static java.util.Map<java.lang.String,java.lang.Object> getPushStreamOptions(PushStreamContext<?> context)
PushStreamContext.context - the contextnullpublic static java.util.Map<java.lang.String,java.lang.Object> getSimpleEventSourceOptions(SimplePushEventSourceContext<?> context)
PushStreamContext.context - the contextnullpublic static <T> PushStreamContext<T> getPushStreamContext(java.util.Map<java.lang.String,java.lang.Object> options)
PushStreamContext out of the options mapoptions - the options mappublic static <T> SimplePushEventSourceContext<T> getEventSourceContext(java.util.Map<java.lang.String,java.lang.Object> options)
SimplePushEventSourceContext context out of the options mapoptions - the options mappublic static <T> AcknowledgingEventSource<T> fromClass(java.lang.Class<T> type, PushStreamContext<T> context)
type - the class typecontext - the push stream context, can be nullAcknowledgingEventSourcepublic static <T> AcknowledgingEventSource<T> fromSimpleEventSource(<any> eventSource, PushStreamContext<T> context)
eventSource - the simple push event sourcecontext - the push stream context, can be nullAcknowledgingEventSourcepublic static <T> <any> createSimpleEventSource(java.lang.Class<T> messageType,
SimplePushEventSourceContext<T> context)
SimplePushEventSource event source for the given typemessageType - the type of the messagecontext - the simple event source context stream context, can be nullSimplePushEventSourcepublic static <T> <any> configureEventSource(<any> builder,
SimplePushEventSourceContext<T> context)
BufferBuilder with the given PushStreamContextbuilder - the BufferBuilder instance, must not be nullcontext - the PushStreamContext with the configuration dataBufferBuilder instanceData In Motion Consulting GmbH