public final class EventMultiplexerSingleThreaded extends EventMultiplexer
In a single threaded event multiplexer, all events are dispatched by a single same thread i.e. the source threads handoff their events to the single dispatcher thread (via the multiplexer event queue) for onward dispatch.
IEventMultiplexer.State| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_QUEUE_DEPTH
Property used to configure the queue depth
Property Name: "queueDepth"
Default value: 1024 |
static int |
PROP_QUEUE_DEPTH_DEFAULT
The default value for
PROP_QUEUE_DEPTH ("queueDepth"): 1024. |
static String |
PROP_QUEUE_DRAINER_CPU_AFFINITY_MASK
Property used to configure the queue drainer CPU affinity mask
Property Name: "queueDrainerCpuAffinityMask"
Default value: UtlThread.getDefaultCPUAffinityMask() |
static String |
PROP_QUEUE_MAX_FEEDER_CONCURRENCY
Property used to configure the queue max feeder concurrency
Property Name: "queueFeedMaxConcurrency"
Default value: 16 |
static int |
PROP_QUEUE_MAX_FEEDER_CONCURRENCY_DEFAULT
The default value for
PROP_QUEUE_MAX_FEEDER_CONCURRENCY ("queueFeedMaxConcurrency"): 16. |
static String |
PROP_QUEUE_OFFER_STRATEGY
Property used to configure the queue offer strategy
Property Name: "queueOfferStrategy"
Default value: "MultiThreaded" |
static String |
PROP_QUEUE_OFFER_STRATEGY_DEFAULT
The default value for
PROP_QUEUE_OFFER_STRATEGY ("queueOfferStrategy"): "MultiThreaded". |
static String |
PROP_QUEUE_WAIT_STRATEGY
Property used to configure the queue wait strategy
Property Name: "queueWaitStrategy"
Default value: |
static String |
PROP_QUEUE_WAIT_STRATEGY_DEFAULT
The default value for
PROP_QUEUE_WAIT_STRATEGY ("queueWaitStrategy"): . |
recordEventLegLatenciesNON_BLOCKING| Modifier and Type | Method and Description |
|---|---|
static IEventMultiplexer |
create(String name,
boolean administrative,
IEventHandler eventHandler,
Properties props)
Create a single threaded event multiplexer.
|
static IEventMultiplexer |
create(String name,
IEventHandler eventHandler,
Properties props)
Create a single threaded event multiplexer.
|
IEventMultiplexerStats |
getStats()
Implementation of
IEventMultiplexer.getStats() |
close, getName, multiplexEvent, onEvent, onEvent, open, scheduledEventCount, scheduleEvent, setAllEventDispatch, unscheduleEventgetChecked, getThreaded, getTracerpublic static final String PROP_QUEUE_DEPTH
Property Name: "queueDepth"
Default value: 1024
public static final int PROP_QUEUE_DEPTH_DEFAULT
PROP_QUEUE_DEPTH ("queueDepth"): 1024.public static final String PROP_QUEUE_OFFER_STRATEGY
Property Name: "queueOfferStrategy"
Default value: "MultiThreaded"
public static final String PROP_QUEUE_OFFER_STRATEGY_DEFAULT
PROP_QUEUE_OFFER_STRATEGY ("queueOfferStrategy"): "MultiThreaded".public static final String PROP_QUEUE_WAIT_STRATEGY
Property Name: "queueWaitStrategy"
Default value:
public static final String PROP_QUEUE_WAIT_STRATEGY_DEFAULT
PROP_QUEUE_WAIT_STRATEGY ("queueWaitStrategy"): .
A default value of null means that the default is resolved by UtlDisruptor.getWaitStrategy(java.lang.String, boolean)
public static final String PROP_QUEUE_MAX_FEEDER_CONCURRENCY
Property Name: "queueFeedMaxConcurrency"
Default value: 16
public static final int PROP_QUEUE_MAX_FEEDER_CONCURRENCY_DEFAULT
PROP_QUEUE_MAX_FEEDER_CONCURRENCY ("queueFeedMaxConcurrency"): 16.public static final String PROP_QUEUE_DRAINER_CPU_AFFINITY_MASK
Property Name: "queueDrainerCpuAffinityMask"
Default value: UtlThread.getDefaultCPUAffinityMask()
public static final IEventMultiplexer create(String name, boolean administrative, IEventHandler eventHandler, Properties props)
name - The event multiplexer's nameadministrative - Whether this multiplexer is an administrative one
i.e. not subject to auto performance tuning.eventHandler - The dispatch event handler i.e. the event handler
through which multiplexed events are dispatched.props - A set of properties that qualify the behavior multiplexer
behavior. See the constructor documentation for the set of properties
supported by a sungle threaded event multiplexer.public static final IEventMultiplexer create(String name, IEventHandler eventHandler, Properties props)
This method invokes create(name, false, eventHandler, props)
public final IEventMultiplexerStats getStats()
IEventMultiplexer.getStats()Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.