T
- the type of payload or message.public interface InMemorySource<T>
Modifier and Type | Method and Description |
---|---|
void |
complete()
Sends the completion event.
|
void |
fail(Throwable failure)
Sends a failure.
|
String |
name() |
InMemorySource<T> |
send(T messageOrPayload)
Sends a message or a payload to the channel.
|
String name()
InMemorySource<T> send(T messageOrPayload)
messageOrPayload
- the message or payload to send. In the case of a payload, a simple message is created.
Must not be null
void complete()
void fail(Throwable failure)
failure
- the failure, must not be null
Copyright © 2018–2021 SmallRye. All rights reserved.