public class ReactorDispatchOptions
extends java.lang.Object
Reactor.dispatchAll(java.util.Set,
ReactorDispatchOptions, ReactorErrorInfo) or Reactor.dispatchChannel(ReactorChannel,
ReactorDispatchOptions, ReactorErrorInfo) call.| Constructor and Description |
|---|
ReactorDispatchOptions()
Instantiates a new reactor dispatch options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this object for reuse.
|
int |
maxMessages()
Returns the maxMessages value.
|
int |
maxMessages(int maxMessages)
Controls the maximum number of events or messages processed in this call.
|
com.thomsonreuters.upa.transport.ReadArgs |
readArgs()
Returns the ReadArgs.
|
public ReactorDispatchOptions()
public com.thomsonreuters.upa.transport.ReadArgs readArgs()
public int maxMessages(int maxMessages)
Reactor.dispatchAll(java.util.Set, ReactorDispatchOptions, ReactorErrorInfo)
or Reactor.dispatchChannel(ReactorChannel, ReactorDispatchOptions,
ReactorErrorInfo) will return when there are no more events to
process. MaxMessages must be greater than zero. Default is 100, which
allows for up to 100 messages to be returned with a single call.maxMessages - the max messagesReactorReturnCodes.SUCCESS if maxMessages is valid,
otherwise ReactorReturnCodes.PARAMETER_OUT_OF_RANGE if
the maxMessages is out of rangepublic int maxMessages()
public void clear()
Copyright @ 2019 Thomson Reuters. All Rights Reserved.