public final class ControlTransportPoller extends UdpTransportPoller
UdpChannelTransports using whatever means provides the lowest latency.errorHandlerITERATION_THRESHOLD, PUBLIC_SELECTED_KEYS_FIELD, SELECTED_KEYS_FIELD, selectedKeySet, selector| Constructor and Description |
|---|
ControlTransportPoller(ErrorHandler errorHandler)
Construct a new
TransportPoller with an ErrorHandler for logging. |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRead(SendChannelEndpoint transport)
Cancel a previous read registration.
|
void |
cancelRead(UdpChannelTransport transport)
Cancel previous registration.
|
void |
checkForReResolutions(long nowNs,
DriverConductorProxy conductorProxy)
Check if any of the registered channels require re-resolution.
|
void |
close() |
int |
pollTransports()
Explicit event loop processing as a poll
|
SelectionKey |
registerForRead(SendChannelEndpoint transport)
Register a new transport to read for control messages.
|
SelectionKey |
registerForRead(UdpChannelTransport transport)
Register channel for read.
|
selectNowWithoutProcessingpublic ControlTransportPoller(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(SendChannelEndpoint transport)
transport - to register.SelectionKey for registration to cancel.public void cancelRead(UdpChannelTransport transport)
UdpTransportPollercancelRead in class UdpTransportPollertransport - to cancel read forpublic void cancelRead(SendChannelEndpoint transport)
transport - to be cancelled and removed.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.