public final class DataTransportPoller extends UdpTransportPoller
UdpChannelTransports using whatever means provides the lowest latency.errorHandlerITERATION_THRESHOLD, PUBLIC_SELECTED_KEYS_FIELD, SELECTED_KEYS_FIELD, selectedKeySet, selector| Constructor and Description |
|---|
DataTransportPoller(ErrorHandler errorHandler)
Construct a new
TransportPoller with an ErrorHandler for logging. |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRead(ReceiveChannelEndpoint channelEndpoint,
UdpChannelTransport transport)
Cancel the reading of a given transport.
|
void |
cancelRead(UdpChannelTransport transport)
Cancel previous registration.
|
void |
checkForReResolutions(long nowNs,
DriverConductorProxy conductorProxy)
Check if any of the registered channels or transports require re-resolution.
|
void |
close() |
int |
pollTransports()
Explicit event loop processing as a poll
|
SelectionKey |
registerForRead(ReceiveChannelEndpoint channelEndpoint,
UdpChannelTransport transport,
int transportIndex)
Register a new transport to be read.
|
SelectionKey |
registerForRead(UdpChannelTransport transport)
Register channel for read.
|
selectNowWithoutProcessingpublic DataTransportPoller(ErrorHandler errorHandler)
TransportPoller with an ErrorHandler for logging.errorHandler - which can be used to log errors and continue.public void close()
close in interface AutoCloseableclose in class TransportPollerpublic int pollTransports()
UdpTransportPollerpollTransports in class UdpTransportPollerpublic SelectionKey registerForRead(UdpChannelTransport transport)
UdpTransportPollerregisterForRead in class UdpTransportPollertransport - to associate with read.SelectionKey for registration to cancel.public SelectionKey registerForRead(ReceiveChannelEndpoint channelEndpoint, UdpChannelTransport transport, int transportIndex)
channelEndpoint - to which the transport belongs.transport - new transport to be registered.transportIndex - for the transport in the channel.SelectionKey for registration to cancel.public void cancelRead(UdpChannelTransport transport)
UdpTransportPollercancelRead in class UdpTransportPollertransport - to cancel read forpublic void cancelRead(ReceiveChannelEndpoint channelEndpoint, UdpChannelTransport transport)
channelEndpoint - to which the transport belongs.transport - transport which was previously registered.public void checkForReResolutions(long nowNs,
DriverConductorProxy conductorProxy)
nowNs - as the current time.conductorProxy - for sending re-resolution requests.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.