|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
MessageType - The protobuf type which is used on this socket.
This MUST match the MessageType used in the parent ProtobufParserpublic static interface ProtobufParser.Listener<MessageType extends com.google.protobuf.MessageLite>
An interface which can be implemented to handle callbacks as new messages are generated and socket events occur.
| Method Summary | |
|---|---|
void |
connectionClosed(ProtobufParser<MessageType> handler)
Called when the connection is closed and no more data should be provided. |
void |
connectionOpen(ProtobufParser<MessageType> handler)
Called when the connection is opened and available for writing data to. |
void |
messageReceived(ProtobufParser<MessageType> handler,
MessageType msg)
Called when a new protobuf is received from the remote side. |
| Method Detail |
|---|
void messageReceived(ProtobufParser<MessageType> handler,
MessageType msg)
void connectionOpen(ProtobufParser<MessageType> handler)
void connectionClosed(ProtobufParser<MessageType> handler)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||