| Package | Description |
|---|---|
| io.smallrye.reactive.messaging | |
| org.eclipse.microprofile.reactive.messaging |
IMPORTANT
This package is a copy from the original package from the specification.
|
| org.eclipse.microprofile.reactive.messaging.spi |
The MicroProfile Reactive Messaging API Connector SPI
|
| Modifier and Type | Method and Description |
|---|---|
<M extends Message<? extends T>> |
MutinyEmitter.send(M msg)
Sends a message to the channel.
|
| Modifier and Type | Method and Description |
|---|---|
Message<?> |
MessageConverter.convert(Message<?> in,
Type target)
Converts the given message
in into a Message<T>. |
Message<?> |
MessageConverter.IdentityConverter.convert(Message<?> in,
Type target) |
| Modifier and Type | Method and Description |
|---|---|
List<org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>>> |
ChannelRegistry.getPublishers(String name) |
List<org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void>> |
ChannelRegistry.getSubscribers(String name) |
default org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> stream) |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> stream,
boolean broadcast) |
default org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> subscriber) |
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> subscriber,
boolean merge) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MessageConverter.canConvert(Message<?> in,
Type target)
Checks whether this instance of converter can convert the given message
in into a Message<T> with
T being the type represented by target. |
boolean |
MessageConverter.IdentityConverter.canConvert(Message<?> in,
Type target) |
Message<?> |
MessageConverter.convert(Message<?> in,
Type target)
Converts the given message
in into a Message<T>. |
Message<?> |
MessageConverter.IdentityConverter.convert(Message<?> in,
Type target) |
static Optional<TracingMetadata> |
TracingMetadata.fromMessage(Message<?> message)
|
| Modifier and Type | Method and Description |
|---|---|
default org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> stream) |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> stream,
boolean broadcast) |
default org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> subscriber) |
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> |
ChannelRegistry.register(String name,
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> subscriber,
boolean merge) |
| Modifier and Type | Method and Description |
|---|---|
<M extends Message<? extends T>> |
Emitter.send(M msg)
Sends a message to the channel.
|
| Modifier and Type | Method and Description |
|---|---|
default Message<T> |
Message.addMetadata(Object metadata)
Creates a new instance of
Message with the current metadata, plus the given one. |
static <T> Message<T> |
Message.of(T payload)
Create a message with the given payload.
|
static <T> Message<T> |
Message.of(T payload,
Iterable<Object> metadata)
Create a message with the given payload and metadata.
|
static <T> Message<T> |
Message.of(T payload,
Iterable<Object> metadata,
Supplier<CompletionStage<Void>> ack)
Create a message with the given payload, metadata and ack function.
|
static <T> Message<T> |
Message.of(T payload,
Iterable<Object> metadata,
Supplier<CompletionStage<Void>> ack,
Function<Throwable,CompletionStage<Void>> nack)
Create a message with the given payload, metadata and ack and nack functions.
|
static <T> Message<T> |
Message.of(T payload,
Metadata metadata)
Create a message with the given payload and metadata.
|
static <T> Message<T> |
Message.of(T payload,
Metadata metadata,
Supplier<CompletionStage<Void>> ack)
Create a message with the given payload, metadata and ack function.
|
static <T> Message<T> |
Message.of(T payload,
Metadata metadata,
Supplier<CompletionStage<Void>> ack,
Function<Throwable,CompletionStage<Void>> nack)
Create a message with the given payload, metadata and ack and nack functions.
|
static <T> Message<T> |
Message.of(T payload,
Supplier<CompletionStage<Void>> ack)
Create a message with the given payload and ack function.
|
static <T> Message<T> |
Message.of(T payload,
Supplier<CompletionStage<Void>> ack,
Function<Throwable,CompletionStage<Void>> nack)
Create a message with the given payload, ack and nack functions.
|
default Message<T> |
Message.withAck(Supplier<CompletionStage<Void>> supplier)
Creates a new instance of
Message with the given acknowledgement supplier. |
default Message<T> |
Message.withMetadata(Iterable<Object> metadata)
Creates a new instance of
Message with the specified metadata. |
default Message<T> |
Message.withMetadata(Metadata metadata)
Creates a new instance of
Message with the specified metadata. |
default Message<T> |
Message.withNack(Function<Throwable,CompletionStage<Void>> nack)
Creates a new instance of
Message with the given negative-acknowledgement function. |
default <P> Message<P> |
Message.withPayload(P payload)
Creates a new instance of
Message with the specified payload. |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> |
IncomingConnectorFactory.getPublisherBuilder(org.eclipse.microprofile.config.Config config)
Creates a channel for the given configuration.
|
org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> |
OutgoingConnectorFactory.getSubscriberBuilder(org.eclipse.microprofile.config.Config config)
Creates a channel for the given configuration.
|
Copyright © 2018–2021 SmallRye. All rights reserved.