public abstract class UdpTransportPoller extends TransportPoller
UdpChannelTransports using whatever means provides the lowest latency.| Modifier and Type | Field and Description |
|---|---|
protected ErrorHandler |
errorHandler
ErrorHandler which can be used to log errors and continue. |
ITERATION_THRESHOLD, ITERATION_THRESHOLD_DEFAULT, ITERATION_THRESHOLD_PROP_NAME, PUBLIC_SELECTED_KEYS_FIELD, SELECTED_KEYS_FIELD, selectedKeySet, selector| Constructor and Description |
|---|
UdpTransportPoller(ErrorHandler errorHandler)
Construct a new
TransportPoller with an ErrorHandler for logging. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cancelRead(UdpChannelTransport transport)
Cancel previous registration.
|
abstract int |
pollTransports()
Explicit event loop processing as a poll
|
abstract SelectionKey |
registerForRead(UdpChannelTransport transport)
Register channel for read.
|
close, selectNowWithoutProcessingprotected final ErrorHandler errorHandler
ErrorHandler which can be used to log errors and continue.public UdpTransportPoller(ErrorHandler errorHandler)
TransportPoller with an ErrorHandler for logging.errorHandler - which can be used to log errors and continue.public abstract int pollTransports()
public abstract SelectionKey registerForRead(UdpChannelTransport transport)
transport - to associate with read.SelectionKey for registration to cancel.public abstract void cancelRead(UdpChannelTransport transport)
transport - to cancel read forCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.