public final class ReceiveDestinationTransport extends UdpChannelTransport
bindAddress, connectAddress, context, endPointAddress, errorHandler, invalidPackets, isClosed, multicastTtl, receiveDatagramChannel, selectionKey, sendDatagramChannel, transportPoller, udpChannel| Constructor and Description |
|---|
ReceiveDestinationTransport(UdpChannel udpChannel,
MediaDriver.Context context,
AtomicCounter localSocketAddressIndicator)
Construct a new transport for a receive destination.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close transport, canceling any pending read operations and closing channel.
|
InetSocketAddress |
currentControlAddress()
The current control address for the destination.
|
void |
currentControlAddress(InetSocketAddress newAddress)
Store the time current control address for the destination.
|
InetSocketAddress |
explicitControlAddress()
Get the explicit control address for the channel.
|
boolean |
hasExplicitControl()
Has the channel explicit control address.
|
void |
openChannel(DriverConductorProxy conductorProxy,
AtomicCounter statusIndicator)
Open the channel by the receiver.
|
void |
selectionKey(SelectionKey key)
Store the
SelectionKey for the registered transport. |
long |
timeOfLastActivityNs()
Get the time of last activity for the destination.
|
void |
timeOfLastActivityNs(long nowNs)
Store the time of last activity for the destination.
|
UdpChannel |
udpChannel()
UdpChannel associated with the destination. |
bindAddressAndPort, isMulticast, isValidFrame, multicastTtl, openDatagramChannel, receive, receiveDatagramChannel, receiveHook, registerForRead, sendError, sendHook, updateEndpointpublic ReceiveDestinationTransport(UdpChannel udpChannel, MediaDriver.Context context, AtomicCounter localSocketAddressIndicator)
udpChannel - for the destination.context - for configuration.localSocketAddressIndicator - to indicate status of the transport.public void openChannel(DriverConductorProxy conductorProxy, AtomicCounter statusIndicator)
conductorProxy - for sending instructions by to the driver conductor.statusIndicator - for the channel.public void close()
UdpChannelTransportclose in interface AutoCloseableclose in class UdpChannelTransportpublic boolean hasExplicitControl()
public InetSocketAddress explicitControlAddress()
public void selectionKey(SelectionKey key)
SelectionKey for the registered transport.key - the SelectionKey for the registered transport.public void timeOfLastActivityNs(long nowNs)
nowNs - the time of last activity for the destination.public long timeOfLastActivityNs()
public UdpChannel udpChannel()
UdpChannel associated with the destination.udpChannel in class UdpChannelTransportUdpChannel associated with the destination.public void currentControlAddress(InetSocketAddress newAddress)
newAddress - control address for the destination.public InetSocketAddress currentControlAddress()
Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.