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 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, isClosed, isMulticast, isValidFrame, multicastTtl, openDatagramChannel, receive, receiveDatagramChannel, receiveHook, registerForRead, sendError, sendHook, socketRcvbufLength, socketSndbufLength, updateEndpoint
public 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 close()
close
in interface AutoCloseable
close
in class UdpChannelTransport
public 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 UdpChannelTransport
UdpChannel
associated with the destination.public void currentControlAddress(InetSocketAddress newAddress)
newAddress
- control address for the destination.public InetSocketAddress currentControlAddress()
Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.