public final class ControlTransportPoller extends UdpTransportPoller
UdpChannelTransports using whatever means provides the lowest latency.errorHandlerITERATION_THRESHOLD, ITERATION_THRESHOLD_DEFAULT, ITERATION_THRESHOLD_PROP_NAME, 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(UdpChannelTransport transport)
Cancel a previous read 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(UdpChannelTransport transport)
Register channel for read.
|
String |
toString() |
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()
pollTransports in class UdpTransportPollerpublic SelectionKey registerForRead(UdpChannelTransport transport)
registerForRead in class UdpTransportPollertransport - to associate with read.SelectionKey for registration to cancel.public void cancelRead(UdpChannelTransport transport)
cancelRead in class UdpTransportPollertransport - 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-2023 Real Logic Limited. All Rights Reserved.