public static class Dispatcher.Builder
extends java.lang.Object
Dispatcher
objects. Dispatcher
s are
immutable objects. This means that you can't directly change their fields
once they are built (there is no setter).
Dispatcher
and dispatches
events of an OmmConsumer
for 30 seconds.
OmmConsumer ommConsumer = ...; . . . Dispatcher theDispatcher = new Dispatcher.Builder() .withOmmConsumer(ommConsumer) .build(); theDispatcher.dispatchEventsUntilTimeElapsed(Dispatcher.THIRTY_SECONDS); . . .
build()
is called.Constructor and Description |
---|
Builder()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Dispatcher |
build()
Builds the
Dispatcher object |
Dispatcher.Builder |
withOmmConsumer(com.thomsonreuters.ema.access.OmmConsumer ommConsumer)
Sets the EMA OmmConsumer used by this dispatcher.
|
public Dispatcher.Builder withOmmConsumer(com.thomsonreuters.ema.access.OmmConsumer ommConsumer)
ommConsumer
- the OmmConsumer that will be dispatch.public Dispatcher build()
Dispatcher
object