Package io.keldysh.messaging.parsing
Interface Parser<PAYLOAD,RECEIVE_MESSAGE,PUBLISH_MESSAGE>
- All Known Subinterfaces:
ByteBufParser<PAYLOAD>
,PayloadParser<PAYLOAD>
public interface Parser<PAYLOAD,RECEIVE_MESSAGE,PUBLISH_MESSAGE>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Parser<T,
T, T> identity()
default PAYLOAD
read
(RECEIVE_MESSAGE message) reader()
default PUBLISH_MESSAGE
write
(PUBLISH_MESSAGE message, PAYLOAD payload) writer()
-
Method Details
-
read
- Throws:
ParsingException
-
write
- Throws:
ParsingException
-
reader
Parser.Reader<RECEIVE_MESSAGE,PAYLOAD> reader() -
writer
Parser.Writer<PAYLOAD,PUBLISH_MESSAGE> writer() -
identity
-