-
- Type Parameters:
HEADER
- The type of the head of theMessage
describing theMessage
(e.g. recipients).BODY
- The type of the payload being carried by theMessage
.
- All Superinterfaces:
BodyAccessor<BODY>
,HeaderAccessor<HEADER>
public interface Message<HEADER,BODY> extends HeaderAccessor<HEADER>, BodyAccessor<BODY>
AMessage
consists of the least required information to send a message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.BodyAccessor
BodyAccessor.BodyBuilder<T,B extends BodyAccessor.BodyBuilder<T,B>>, BodyAccessor.BodyMutator<T>, BodyAccessor.BodyProperty<T>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.HeaderAccessor
HeaderAccessor.HeaderBuilder<T,B extends HeaderAccessor.HeaderBuilder<T,B>>, HeaderAccessor.HeaderMutator<T>, HeaderAccessor.HeaderProperty<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BODY
getBody()
Retrieves the value from the body property.HEADER
getHeader()
Retrieves the value from the header property.
-
-
-
Method Detail
-
getHeader
HEADER getHeader()
Retrieves the value from the header property. The header describes theMessage
.- Specified by:
getHeader
in interfaceHeaderAccessor<HEADER>
- Returns:
- The header stored by the header property.
-
getBody
BODY getBody()
Retrieves the value from the body property. Retrieves the payload carried by theMessage
.- Specified by:
getBody
in interfaceBodyAccessor<HEADER>
- Returns:
- The according payload.
-
-