Package software.amazon.eventstream
Interface MessageBuilder
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MessageBuilder
An abstraction for message construction. This interface can be used to customize message creation in different ways, such as implementing decorators that add headers or manipulate the message payload.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Message
build(Map<String,HeaderValue> headers, byte[] payload)
static MessageBuilder
defaultBuilder()
-
-
-
Method Detail
-
build
Message build(Map<String,HeaderValue> headers, byte[] payload)
-
defaultBuilder
static MessageBuilder defaultBuilder()
-
-