Package io.aeron.driver.media
Class UdpTransportPoller
java.lang.Object
org.agrona.nio.TransportPoller
io.aeron.driver.media.UdpTransportPoller
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ControlTransportPoller,DataTransportPoller
Encapsulates the polling of a number of
UdpChannelTransports using whatever means provides the
lowest latency.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ErrorHandlerErrorHandlerwhich can be used to log errors and continue.Fields inherited from class org.agrona.nio.TransportPoller
ITERATION_THRESHOLD, ITERATION_THRESHOLD_DEFAULT, ITERATION_THRESHOLD_PROP_NAME, selector -
Constructor Summary
ConstructorsConstructorDescriptionUdpTransportPoller(ErrorHandler errorHandler) Construct a newTransportPollerwith anErrorHandlerfor logging. -
Method Summary
Modifier and TypeMethodDescriptionabstract intExplicit event loop processing as a poll.Methods inherited from class org.agrona.nio.TransportPoller
close, selectNowWithoutProcessing
-
Field Details
-
errorHandler
ErrorHandlerwhich can be used to log errors and continue.
-
-
Constructor Details
-
UdpTransportPoller
Construct a newTransportPollerwith anErrorHandlerfor logging.- Parameters:
errorHandler- which can be used to log errors and continue.
-
-
Method Details
-
pollTransports
public abstract int pollTransports()Explicit event loop processing as a poll.- Returns:
- the number of frames processed.
-