public class DebugSendChannelEndpoint extends SendChannelEndpoint
connectAddress, context, errorHandler, isClosed, receiveDatagramChannel, selectionKey, sendDatagramChannel, udpChannel| Constructor and Description |
|---|
DebugSendChannelEndpoint(UdpChannel udpChannel,
AtomicCounter statusIndicator,
MediaDriver.Context context)
Construct a
SendChannelEndpoint with defaults for loss from DebugChannelEndpointConfiguration. |
DebugSendChannelEndpoint(UdpChannel udpChannel,
AtomicCounter statusIndicator,
MediaDriver.Context context,
LossGenerator dataLossGenerator,
LossGenerator controlLossGenerator)
Construct a
SendChannelEndpoint with configuration for loss rate and seed. |
| Modifier and Type | Method and Description |
|---|---|
void |
onNakMessage(NakFlyweight msg,
UnsafeBuffer buffer,
int length,
InetSocketAddress srcAddress)
Callback back handler for received NAK messages.
|
void |
onRttMeasurement(RttMeasurementFlyweight msg,
UnsafeBuffer buffer,
int length,
InetSocketAddress srcAddress)
Callback back handler for received RTT Measurement messages.
|
void |
onStatusMessage(StatusMessageFlyweight msg,
UnsafeBuffer buffer,
int length,
InetSocketAddress srcAddress)
Callback back handler for received status messages.
|
int |
send(ByteBuffer buffer)
Send contents of a
ByteBuffer to connected address. |
addDestination, allocateDestinationsCounterForMdc, checkForReResolution, closeIndicators, decRef, incRef, indicateActive, localSocketAddressIndicator, openChannel, originalUriString, registerForSend, removeDestination, resolutionChange, shouldBeClosed, statusIndicatorCounterId, unregisterForSend, validateAllowsManualControlbindAddressAndPort, close, isClosed, isMulticast, isValidFrame, multicastTtl, openDatagramChannel, receive, receiveDatagramChannel, receiveHook, registerForRead, sendError, sendHook, socketRcvbufLength, socketSndbufLength, udpChannel, updateEndpointpublic DebugSendChannelEndpoint(UdpChannel udpChannel, AtomicCounter statusIndicator, MediaDriver.Context context)
SendChannelEndpoint with defaults for loss from DebugChannelEndpointConfiguration.udpChannel - for the media.statusIndicator - for the endpoint for the channel.context - for configuration.public DebugSendChannelEndpoint(UdpChannel udpChannel, AtomicCounter statusIndicator, MediaDriver.Context context, LossGenerator dataLossGenerator, LossGenerator controlLossGenerator)
SendChannelEndpoint with configuration for loss rate and seed.udpChannel - for the media.statusIndicator - for the endpoint for the channel.context - for configuration.dataLossGenerator - for the random loss on the data stream.controlLossGenerator - for the random loss on the control stream.public int send(ByteBuffer buffer)
ByteBuffer to connected address.
This is used on the sender side for performance over send(ByteBuffer, SocketAddress).send in class SendChannelEndpointbuffer - to sendpublic void onStatusMessage(StatusMessageFlyweight msg, UnsafeBuffer buffer, int length, InetSocketAddress srcAddress)
onStatusMessage in class SendChannelEndpointmsg - flyweight over the status message.buffer - containing the message.length - of the message.srcAddress - of the message.public void onNakMessage(NakFlyweight msg, UnsafeBuffer buffer, int length, InetSocketAddress srcAddress)
onNakMessage in class SendChannelEndpointmsg - flyweight over the NAK message.buffer - containing the message.length - of the message.srcAddress - of the message.public void onRttMeasurement(RttMeasurementFlyweight msg, UnsafeBuffer buffer, int length, InetSocketAddress srcAddress)
onRttMeasurement in class SendChannelEndpointmsg - flyweight over the RTT message.buffer - containing the message.length - of the message.srcAddress - of the message.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.