public class ReceiveChannelEndpoint extends UdpChannelTransport
bindAddress, connectAddress, endPointAddress, errorLog, invalidPackets, multicastTtl, receiveDatagramChannel, selectionKey, sendDatagramChannel, transportPoller, udpChannel| Constructor and Description |
|---|
ReceiveChannelEndpoint(UdpChannel udpChannel,
DataPacketDispatcher dispatcher,
org.agrona.concurrent.status.AtomicCounter statusIndicator,
MediaDriver.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPublicationImage(PublicationImage image) |
void |
addSubscription(int streamId) |
void |
close()
Close transport, canceling any pending read operations and closing channel
|
void |
closeStatusIndicator() |
int |
decRefToStream(int streamId) |
java.net.InetSocketAddress |
explicitControlAddress() |
boolean |
hasExplicitControl() |
int |
incRefToStream(int streamId) |
void |
indicateActive() |
int |
onDataPacket(io.aeron.protocol.DataHeaderFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress) |
void |
onRttMeasurement(io.aeron.protocol.RttMeasurementFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress) |
void |
onSetupMessage(io.aeron.protocol.SetupFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress) |
void |
openChannel() |
java.lang.String |
originalUriString() |
void |
possibleTtlAsymmetryEncountered() |
void |
removeCoolDown(int sessionId,
int streamId) |
void |
removePendingSetup(int sessionId,
int streamId) |
void |
removePublicationImage(PublicationImage publicationImage) |
void |
removeSubscription(int streamId) |
void |
sendNakMessage(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
int termId,
int termOffset,
int length) |
void |
sendRttMeasurement(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
long echoTimestampNs,
long receptionDelta,
boolean isReply) |
void |
sendSetupElicitingStatusMessage(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId) |
void |
sendStatusMessage(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
int termId,
int termOffset,
int window,
short flags) |
int |
sendTo(java.nio.ByteBuffer buffer,
java.net.InetSocketAddress remoteAddress)
Send contents of
ByteBuffer to remote address |
boolean |
shouldBeClosed() |
boolean |
shouldElicitSetupMessage() |
int |
streamCount() |
void |
validateSenderMtuLength(int senderMtuLength) |
void |
validateWindowMaxLength(int windowMaxLength) |
getOption, isMulticast, isValidFrame, multicastTtl, openDatagramChannel, receive, receiveDatagramChannel, registerForRead, udpChannelpublic ReceiveChannelEndpoint(UdpChannel udpChannel, DataPacketDispatcher dispatcher, org.agrona.concurrent.status.AtomicCounter statusIndicator, MediaDriver.Context context)
public int sendTo(java.nio.ByteBuffer buffer,
java.net.InetSocketAddress remoteAddress)
ByteBuffer to remote addressbuffer - to sendremoteAddress - to send topublic java.lang.String originalUriString()
public void indicateActive()
public void closeStatusIndicator()
public void close()
UdpChannelTransportclose in interface java.lang.AutoCloseableclose in class UdpChannelTransportpublic void openChannel()
public void possibleTtlAsymmetryEncountered()
public int incRefToStream(int streamId)
public int decRefToStream(int streamId)
public int streamCount()
public boolean shouldBeClosed()
public boolean hasExplicitControl()
public java.net.InetSocketAddress explicitControlAddress()
public int onDataPacket(io.aeron.protocol.DataHeaderFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress)
public void onSetupMessage(io.aeron.protocol.SetupFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress)
public void onRttMeasurement(io.aeron.protocol.RttMeasurementFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress)
public void sendSetupElicitingStatusMessage(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId)
public void validateWindowMaxLength(int windowMaxLength)
public void validateSenderMtuLength(int senderMtuLength)
public void sendStatusMessage(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
int termId,
int termOffset,
int window,
short flags)
public void sendNakMessage(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
int termId,
int termOffset,
int length)
public void sendRttMeasurement(java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
long echoTimestampNs,
long receptionDelta,
boolean isReply)
public void removePendingSetup(int sessionId,
int streamId)
public void removePublicationImage(PublicationImage publicationImage)
public void addSubscription(int streamId)
public void removeSubscription(int streamId)
public void addPublicationImage(PublicationImage image)
public void removeCoolDown(int sessionId,
int streamId)
public boolean shouldElicitSetupMessage()
Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.