@ProviderType public static interface MessageReceiver.InboundMessageSupplier extends Supplier<InboundMessage>
Instances of a supplier are thread safe.
Modifier and Type | Method and Description |
---|---|
static MessageReceiver.InboundMessageSupplier |
byteMessageSupplier(byte[] payload)
Creates a message supplier with a given payload.
|
static MessageReceiver.InboundMessageSupplier |
nullMessageSupplier()
Creates a message supplier that creates
null messages. |
static MessageReceiver.InboundMessageSupplier |
stringMessageSupplier(String payload)
Creates a message supplier with a given payload.
|
static MessageReceiver.InboundMessageSupplier byteMessageSupplier(byte[] payload)
All created messages have a same payload.
payload
- the payload as a byte-arraystatic MessageReceiver.InboundMessageSupplier nullMessageSupplier()
null
messages.static MessageReceiver.InboundMessageSupplier stringMessageSupplier(String payload)
All created messages have a same payload.
payload
- the payload as a StringCopyright 2019-2024 Solace Corporation. All rights reserved.