public class DataPacketDispatcher
extends java.lang.Object
PublicationImage
s streams.
All methods should be called from the Receiver
thread.
Constructor and Description |
---|
DataPacketDispatcher(DriverConductorProxy conductorProxy,
Receiver receiver) |
Modifier and Type | Method and Description |
---|---|
void |
addPublicationImage(PublicationImage image) |
void |
addSubscription(int streamId) |
void |
addSubscription(int streamId,
int sessionId) |
int |
onDataPacket(ReceiveChannelEndpoint channelEndpoint,
DataHeaderFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress,
int transportIndex) |
void |
onRttMeasurement(ReceiveChannelEndpoint channelEndpoint,
RttMeasurementFlyweight header,
java.net.InetSocketAddress srcAddress,
int transportIndex) |
void |
onSetupMessage(ReceiveChannelEndpoint channelEndpoint,
SetupFlyweight header,
java.net.InetSocketAddress srcAddress,
int transportIndex) |
void |
removeCoolDown(int sessionId,
int streamId) |
void |
removePendingSetup(int sessionId,
int streamId) |
void |
removePublicationImage(PublicationImage image) |
void |
removeSubscription(int streamId) |
void |
removeSubscription(int streamId,
int sessionId) |
boolean |
shouldElicitSetupMessage() |
public DataPacketDispatcher(DriverConductorProxy conductorProxy, Receiver receiver)
public void addSubscription(int streamId)
public void addSubscription(int streamId, int sessionId)
public void removeSubscription(int streamId)
public void removeSubscription(int streamId, int sessionId)
public void addPublicationImage(PublicationImage image)
public void removePublicationImage(PublicationImage image)
public void removePendingSetup(int sessionId, int streamId)
public void removeCoolDown(int sessionId, int streamId)
public int onDataPacket(ReceiveChannelEndpoint channelEndpoint, DataHeaderFlyweight header, org.agrona.concurrent.UnsafeBuffer buffer, int length, java.net.InetSocketAddress srcAddress, int transportIndex)
public void onSetupMessage(ReceiveChannelEndpoint channelEndpoint, SetupFlyweight header, java.net.InetSocketAddress srcAddress, int transportIndex)
public void onRttMeasurement(ReceiveChannelEndpoint channelEndpoint, RttMeasurementFlyweight header, java.net.InetSocketAddress srcAddress, int transportIndex)
public boolean shouldElicitSetupMessage()
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.