public class Echo extends Conversation
Modifier and Type | Class and Description |
---|---|
static class |
Echo.Provider
Echo conversation provider.
|
Constructor and Description |
---|
Echo(String topic,
int cid,
int pid)
Create a new echo conversation.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptMessage(byte[] message)
Accept a byte form of a message in the context of a given conversation.
|
int |
count()
Get the number of echoes provided by this conversation.
|
connection, equals, hashCode, id, isEnded, parentId, setConnection, topic
public Echo(String topic, int cid, int pid)
topic
- conversation topiccid
- conversation idpid
- parent conversation idpublic void acceptMessage(byte[] message)
Conversation
acceptMessage
in class Conversation
message
- byte buffer containing the raw messagepublic int count()
Copyright © 2015. All Rights Reserved.