public final class ReceiveDestinationTransport extends UdpChannelTransport
connectAddress, context, errorHandler, isClosed, receiveDatagramChannel, selectionKey, sendDatagramChannel, udpChannel| Constructor and Description |
|---|
ReceiveDestinationTransport(UdpChannel udpChannel,
MediaDriver.Context context,
AtomicCounter localSocketAddressIndicator,
ReceiveChannelEndpoint receiveChannelEndpoint)
Construct transport for a receiving destination.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close transport, canceling any pending read operations and closing channel.
|
void |
closeIndicators()
Close indicator counters associated with the transport.
|
void |
closeTransport()
Close the networking elements of the ReceiveChannelEndpoint, but leave other components (e.g.
|
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, isClosed, isMulticast, isValidFrame, multicastTtl, openDatagramChannel, receive, receiveDatagramChannel, receiveHook, registerForRead, sendError, sendHook, socketRcvbufLength, socketSndbufLength, updateEndpointpublic ReceiveDestinationTransport(UdpChannel udpChannel, MediaDriver.Context context, AtomicCounter localSocketAddressIndicator, ReceiveChannelEndpoint receiveChannelEndpoint)
udpChannel - for the destination.context - for configuration.localSocketAddressIndicator - to indicate status of the transport.receiveChannelEndpoint - to which this destination belongs.public void openChannel(DriverConductorProxy conductorProxy, AtomicCounter statusIndicator)
conductorProxy - for sending instructions by to the driver conductor.statusIndicator - for the channel.public void closeTransport()
public void closeIndicators()
public void close()
close 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-2023 Real Logic Limited. All Rights Reserved.