public class FCTransportDispatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
IDLE_SPIN_IDLE_COUNT |
static int |
IDLE_SPIN_LOCK_PARK_NANOS |
static int |
MAX_NUM_TOPICS |
| Constructor and Description |
|---|
FCTransportDispatcher(Transport trans,
String clusterName,
String nodeId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(List<String> timedOutSenders,
int topic) |
PacketSendBuffer |
getSender(int topic) |
boolean |
hasReceiver(TopicEntry chan) |
boolean |
hasSender(TopicEntry chan) |
void |
installReceiver(TopicEntry chan,
MsgReceiver msgListener) |
void |
installSender(TopicEntry topicEntry)
installs and initializes sender thread and buffer, sets is to topicEntry given in argument !!
|
boolean |
putHeartbeat(PacketSendBuffer packetSendBuffer) |
void |
startListening(TopicEntry topic) |
void |
stopListening(TopicEntry topic) |
public static final int IDLE_SPIN_LOCK_PARK_NANOS
public static final int IDLE_SPIN_IDLE_COUNT
public static int MAX_NUM_TOPICS
public void installReceiver(TopicEntry chan, MsgReceiver msgListener)
public boolean hasReceiver(TopicEntry chan)
public boolean hasSender(TopicEntry chan)
public void installSender(TopicEntry topicEntry)
topicEntry - public PacketSendBuffer getSender(int topic)
public boolean putHeartbeat(PacketSendBuffer packetSendBuffer)
public void startListening(TopicEntry topic)
public void stopListening(TopicEntry topic)
Copyright © 2014. All rights reserved.