Interface CAProtocolMessagesType<T extends CAProtocolMessageType>
- Type Parameters:
T- The type of protocol messages
- All Known Implementing Classes:
CAI1Messages
public interface CAProtocolMessagesType<T extends CAProtocolMessageType>
The interface exposed by protocol message handlers.
-
Method Summary
-
Method Details
-
parse
Parse a message from the given bytes.- Parameters:
data- The bytes- Returns:
- A parsed message
- Throws:
CAProtocolException- If parsing fails
-
serialize
Serialize the given message to a byte array.- Parameters:
message- The message- Returns:
- The serialized message as a byte array
- Throws:
CAProtocolException- If serialization fails
-