Modifier and Type | Method and Description |
---|---|
<A extends Message> |
build()
build.
|
static <V extends Message> |
createFrom(Envelope<V> envelope)
createFrom.
|
static <V extends Message> |
createFrom(Envelope<V> envelope,
V message)
createFrom.
|
static <V extends Message> |
createNew()
createNew.
|
MessageEnvelopeBuilder<M> |
fromAnyAddress()
fromAnyAddress.
|
MessageEnvelopeBuilder<M> |
message(M content)
message.
|
<A extends SocketAddress> |
recipient(A address)
recipient.
|
<A extends SocketAddress> |
sender(A address)
sender.
|
public static <V extends Message> MessageEnvelopeBuilder<V> createNew()
createNew.
V
- a V classMessageEnvelopeBuilder
objectpublic static <V extends Message> MessageEnvelopeBuilder<V> createFrom(Envelope<V> envelope)
createFrom.
V
- a V classenvelope
- a Envelope
objectMessageEnvelopeBuilder
objectpublic MessageEnvelopeBuilder<M> message(M content)
message.
content
- a M objectMessageEnvelopeBuilder
objectpublic <A extends SocketAddress> MessageEnvelopeBuilder<M> sender(A address)
sender.
A
- a A classaddress
- a A objectMessageEnvelopeBuilder
objectpublic static <V extends Message> MessageEnvelopeBuilder<V> createFrom(Envelope<V> envelope, V message)
createFrom.
V
- a V classenvelope
- a Envelope
objectmessage
- a V objectMessageEnvelopeBuilder
objectpublic <A extends SocketAddress> MessageEnvelopeBuilder<M> recipient(A address)
recipient.
A
- a A classaddress
- a A objectMessageEnvelopeBuilder
objectpublic MessageEnvelopeBuilder<M> fromAnyAddress()
fromAnyAddress.
MessageEnvelopeBuilder
objectCopyright © 2016–2024. All rights reserved.