public class DataTransportPoller extends UdpTransportPoller
UdpChannelTransport
s using whatever means provides the lowest latency.Constructor and Description |
---|
DataTransportPoller() |
Modifier and Type | Method and Description |
---|---|
void |
cancelRead(ReceiveChannelEndpoint channelEndpoint,
UdpChannelTransport transport) |
void |
cancelRead(UdpChannelTransport transport)
Cancel previous registration.
|
void |
close() |
int |
pollTransports()
Explicit event loop processing as a poll
|
java.nio.channels.SelectionKey |
registerForRead(ReceiveChannelEndpoint channelEndpoint,
UdpChannelTransport transport,
int transportIndex) |
java.nio.channels.SelectionKey |
registerForRead(UdpChannelTransport transport)
Register channel for read.
|
public void close()
close
in interface java.lang.AutoCloseable
close
in class org.agrona.nio.TransportPoller
public int pollTransports()
UdpTransportPoller
pollTransports
in class UdpTransportPoller
public java.nio.channels.SelectionKey registerForRead(UdpChannelTransport transport)
UdpTransportPoller
registerForRead
in class UdpTransportPoller
transport
- to associate with readpublic java.nio.channels.SelectionKey registerForRead(ReceiveChannelEndpoint channelEndpoint, UdpChannelTransport transport, int transportIndex)
public void cancelRead(UdpChannelTransport transport)
UdpTransportPoller
cancelRead
in class UdpTransportPoller
transport
- to cancel read forpublic void cancelRead(ReceiveChannelEndpoint channelEndpoint, UdpChannelTransport transport)
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.