public class FCTopicService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
nodeId |
protected FCRemoting |
remoting |
protected String |
topicName |
protected int |
topicNum |
| Constructor and Description |
|---|
FCTopicService() |
| Modifier and Type | Method and Description |
|---|---|
void |
droppedFromReceiving()
signaled if this service could not keep up with send rate and requested
retransmission of a packet which is already removed from the senders history.
|
String |
getNodeId() |
FCRemoting |
getRemoting() |
String |
getTopicName() |
int |
getTopicNum()
get unique number of this topic
|
void |
init()
override to do init and stuff
|
protected boolean |
invoke(int methodIndex,
Method m,
de.ruedigermoeller.serialization.FSTObjectInput in,
Class[] types)
called right before decoding, return true to consume the call.
|
protected int |
readAndFilter(int methodId,
de.ruedigermoeller.heapoff.bytez.Bytez bytez,
int offset)
allows to filter out messages before they are decoded by reading a user provided header (see writeFilterBytes).
|
void |
receiveBinary(de.ruedigermoeller.heapoff.bytez.Bytez bytes,
int offset,
int length)
called is pure binary content has been sent, bypass of remoting layer
|
void |
replyToSender()
next remote call goes to sender of current method.
|
protected String nodeId
protected FCRemoting remoting
protected String topicName
protected int topicNum
public int getTopicNum()
protected boolean invoke(int methodIndex,
Method m,
de.ruedigermoeller.serialization.FSTObjectInput in,
Class[] types)
methodIndex - m - in - types - public String getNodeId()
public FCRemoting getRemoting()
public String getTopicName()
public void droppedFromReceiving()
public void init()
public void receiveBinary(de.ruedigermoeller.heapoff.bytez.Bytez bytes,
int offset,
int length)
bytes - offset - length - public void replyToSender()
protected int readAndFilter(int methodId,
de.ruedigermoeller.heapoff.bytez.Bytez bytez,
int offset)
bytez - offset - Copyright © 2014. All rights reserved.