public interface IMessageProtocol<T extends IMessage>
Modifier and Type | Method and Description |
---|---|
int |
getMessageCount() |
int |
getMessageId(java.lang.String name) |
java.lang.String |
getMessageName(int id) |
java.util.Collection<java.lang.String> |
getMessageNames() |
java.lang.String |
name() |
T |
newMessage(int id) |
T |
newMessage(java.lang.String name) |
int |
serializationSize(T msg) |
void |
serialize(T m,
java.io.OutputStream os) |
T |
unserialize(java.io.InputStream is) |
java.lang.String |
version() |
java.lang.String name()
java.lang.String version()
int serializationSize(T msg)
void serialize(T m, java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception
T unserialize(java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
T newMessage(int id) throws java.lang.Exception
java.lang.Exception
T newMessage(java.lang.String name) throws java.lang.Exception
java.lang.Exception
java.util.Collection<java.lang.String> getMessageNames()
int getMessageCount()
java.lang.String getMessageName(int id) throws java.lang.Exception
java.lang.Exception
int getMessageId(java.lang.String name) throws java.lang.Exception
java.lang.Exception