P - Message payload typeH - Message headers value typepublic interface Message<P,H> extends MessageHeaders<H>
| Modifier and Type | Method and Description |
|---|---|
Optional<P> |
getPayload()
Message payload
|
Class<? extends P> |
getPayloadType()
Message payload type
|
Optional<String> |
getProtocol()
Protocol name with which message was delivered
|
getHeader, getHeadersOptional<String> getProtocol()
Optional<P> getPayload() throws UnsupportedOperationException
UnsupportedOperationException - If this kind of message does not support a payloadClass<? extends P> getPayloadType() throws UnsupportedOperationException
UnsupportedOperationException - If this kind of message does not support a payloadCopyright © 2019 The Holon Platform. All rights reserved.