Package io.aeron.driver.media
Class ControlTransportPoller
java.lang.Object
org.agrona.nio.TransportPoller
io.aeron.driver.media.UdpTransportPoller
io.aeron.driver.media.ControlTransportPoller
- All Implemented Interfaces:
AutoCloseable
Encapsulates the polling of control
UdpChannelTransports using whatever means provides the lowest latency.-
Field Summary
Fields inherited from class io.aeron.driver.media.UdpTransportPoller
errorHandlerFields inherited from class org.agrona.nio.TransportPoller
ITERATION_THRESHOLD, ITERATION_THRESHOLD_DEFAULT, ITERATION_THRESHOLD_PROP_NAME, selector -
Constructor Summary
ConstructorsConstructorDescriptionControlTransportPoller(ErrorHandler errorHandler, DriverConductorProxy conductorProxy) Construct a newTransportPollerwith anErrorHandlerfor logging. -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelRead(SendChannelEndpoint sendChannelEndpoint) Cancel a previous read registration.voidcheckForReResolutions(long nowNs, DriverConductorProxy conductorProxy) Check if any of the registered channels require re-resolution.voidclose()intExplicit event loop processing as a poll.voidregisterForRead(SendChannelEndpoint sendChannelEndpoint) Register channel for read.toString()Methods inherited from class org.agrona.nio.TransportPoller
selectNowWithoutProcessing
-
Constructor Details
-
ControlTransportPoller
Construct a newTransportPollerwith anErrorHandlerfor logging.- Parameters:
errorHandler- which can be used to log errors and continue.conductorProxy- to send message back to the conductor.
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classTransportPoller
-
pollTransports
public int pollTransports()Explicit event loop processing as a poll.- Specified by:
pollTransportsin classUdpTransportPoller- Returns:
- the number of frames processed.
-
registerForRead
Register channel for read.- Parameters:
sendChannelEndpoint- to associate with read.
-
cancelRead
Cancel a previous read registration.- Parameters:
sendChannelEndpoint- to be canceled and removed.
-
checkForReResolutions
Check if any of the registered channels require re-resolution.- Parameters:
nowNs- as the current time.conductorProxy- for sending re-resolution requests.
-
toString
-