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, topicpublic Echo(String topic, int cid, int pid)
topic - conversation topiccid - conversation idpid - parent conversation idpublic void acceptMessage(byte[] message)
ConversationacceptMessage in class Conversationmessage - byte buffer containing the raw messagepublic int count()
Copyright © 2014. All Rights Reserved.