public class Receiver extends java.lang.Object implements org.agrona.concurrent.Agent, java.util.function.Consumer<ReceiverCmd>
| Constructor and Description |
|---|
Receiver(MediaDriver.Context ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ReceiverCmd cmd) |
void |
addPendingSetupMessage(int sessionId,
int streamId,
ReceiveChannelEndpoint channelEndpoint,
boolean periodic,
java.net.InetSocketAddress controlAddress) |
int |
doWork() |
void |
onAddSubscription(ReceiveChannelEndpoint channelEndpoint,
int streamId) |
void |
onClose() |
void |
onCloseReceiveChannelEndpoint(ReceiveChannelEndpoint channelEndpoint) |
void |
onNewPublicationImage(ReceiveChannelEndpoint channelEndpoint,
PublicationImage image) |
void |
onRegisterReceiveChannelEndpoint(ReceiveChannelEndpoint channelEndpoint) |
void |
onRemoveCoolDown(ReceiveChannelEndpoint channelEndpoint,
int sessionId,
int streamId) |
void |
onRemoveSubscription(ReceiveChannelEndpoint channelEndpoint,
int streamId) |
java.lang.String |
roleName() |
public Receiver(MediaDriver.Context ctx)
public void onClose()
onClose in interface org.agrona.concurrent.Agentpublic java.lang.String roleName()
roleName in interface org.agrona.concurrent.Agentpublic int doWork()
throws java.lang.Exception
doWork in interface org.agrona.concurrent.Agentjava.lang.Exceptionpublic void addPendingSetupMessage(int sessionId,
int streamId,
ReceiveChannelEndpoint channelEndpoint,
boolean periodic,
java.net.InetSocketAddress controlAddress)
public void onAddSubscription(ReceiveChannelEndpoint channelEndpoint, int streamId)
public void onRemoveSubscription(ReceiveChannelEndpoint channelEndpoint, int streamId)
public void onNewPublicationImage(ReceiveChannelEndpoint channelEndpoint, PublicationImage image)
public void onRegisterReceiveChannelEndpoint(ReceiveChannelEndpoint channelEndpoint)
public void onCloseReceiveChannelEndpoint(ReceiveChannelEndpoint channelEndpoint)
public void onRemoveCoolDown(ReceiveChannelEndpoint channelEndpoint, int sessionId, int streamId)
public void accept(ReceiverCmd cmd)
accept in interface java.util.function.Consumer<ReceiverCmd>Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.