T - the type of payload sent by the emitter.public class EmitterImpl<T> extends AbstractEmitter<T> implements Emitter<T>
internal, name, publisher, synchronousFailure| Constructor and Description |
|---|
EmitterImpl(EmitterConfiguration config,
long defaultBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
<M extends Message<? extends T>> |
send(M msg)
Sends a message to the channel.
|
CompletionStage<Void> |
send(T payload)
Sends a payload to the channel.
|
complete, emit, error, getPublisher, hasRequests, isCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomplete, error, hasRequests, isCancelledpublic EmitterImpl(EmitterConfiguration config, long defaultBufferSize)
public CompletionStage<Void> send(T payload)
Emitter
A Message object will be created to hold the payload and the returned CompletionStage will be completed
once this
Message is acknowledged. If the Message is never acknowledged, then the CompletionStage will
never be completed.
Copyright © 2018–2021 SmallRye. All rights reserved.