HEADER
- The type of the head of the Message
describing the
Message
(e.g. recipients).BODY
- The type of the payload being carried by the Message
.BodyAccessor<BODY>
, HeaderAccessor<HEADER>
public interface Message<HEADER,BODY> extends HeaderAccessor<HEADER>, BodyAccessor<BODY>
Message
consists of the least required information to send a
message.BodyAccessor.BodyBuilder<T,B extends BodyAccessor.BodyBuilder<T,B>>, BodyAccessor.BodyMutator<T>, BodyAccessor.BodyProperty<T>
HeaderAccessor.HeaderBuilder<T,B extends HeaderAccessor.HeaderBuilder<T,B>>, HeaderAccessor.HeaderMutator<T>, HeaderAccessor.HeaderProperty<T>
Modifier and Type | Method | Description |
---|---|---|
BODY |
getBody() |
Retrieves the value from the body property.
|
HEADER |
getHeader() |
Retrieves the value from the header property.
|
HEADER getHeader()
Message
.getHeader
in interface HeaderAccessor<HEADER>
BODY getBody()
Message
.getBody
in interface BodyAccessor<HEADER>
Copyright © 2021. All rights reserved.