| Modifier and Type | Method and Description |
|---|---|
Message |
Message.Builder.build() |
Message |
JdkMessageCodec.deserialize(InputStream is) |
Message |
MessageCodec.deserialize(InputStream stream)
Deserializes message from given input stream.
|
static Message |
Message.from(Message message)
Instantiates new message with the same data and headers as at given message.
|
static Message |
Message.fromData(Object data)
Instantiates a new message with the given data and without headers.
|
static Message |
Message.fromHeaders(Map<String,String> headers)
Instantiates a new message with the given headers and with empty data.
|
static Message |
Message.fromQualifier(String qualifier)
Instantiates a new message with the given qualifier header and with empty data.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<Message> |
Transport.listen()
Returns stream of received messages.
|
reactor.core.publisher.Mono<Message> |
Transport.requestResponse(io.scalecube.net.Address address,
Message request)
Sends message to the given address.
|
| Modifier and Type | Method and Description |
|---|---|
static Message |
Message.from(Message message)
Instantiates new message with the same data and headers as at given message.
|
reactor.core.publisher.Mono<Message> |
Transport.requestResponse(io.scalecube.net.Address address,
Message request)
Sends message to the given address.
|
reactor.core.publisher.Mono<Void> |
Transport.send(io.scalecube.net.Address address,
Message message)
Sends message to the given address.
|
void |
JdkMessageCodec.serialize(Message message,
OutputStream os) |
void |
MessageCodec.serialize(Message message,
OutputStream stream)
Serializes given message into given output stream.
|
static Message.Builder |
Message.with(Message message)
Instantiates new message builder with the same data and headers as at given message.
|
Copyright © 2015–2020. All rights reserved.