public final class StreamBridge extends Object implements org.springframework.beans.factory.SmartInitializingSingleton
Modifier and Type | Method and Description |
---|---|
void |
afterSingletonsInstantiated() |
boolean |
send(String bindingName,
Object data)
Sends 'data' to an output binding specified by 'bindingName' argument while
using default content type to deal with output type conversion (if necessary).
|
boolean |
send(String bindingName,
Object data,
org.springframework.util.MimeType outputContentType)
Sends 'data' to an output binding specified by 'bindingName' argument while
using the content type specified by the 'outputContentType' argument to deal
with output type conversion (if necessary).
|
boolean |
send(String bindingName,
String binderName,
Object data)
Sends 'data' to an output binding specified by 'bindingName' argument while
using the content type specified by the 'outputContentType' argument to deal
with output type conversion (if necessary).
|
boolean |
send(String bindingName,
String binderName,
Object data,
org.springframework.util.MimeType outputContentType)
Sends 'data' to an output binding specified by 'bindingName' argument while
using the content type specified by the 'outputContentType' argument to deal
with output type conversion (if necessary).
|
public boolean send(String bindingName, Object data)
send(String, String, Object)
and send(String, String, Object, MimeType)
methods.bindingName
- the name of the output binding. That said it requires a bit of clarification.
When using bridge.send("foo"...), the 'foo' typically represents the binding name. However
if such binding does not exist, the new binding will be created to support dynamic destinations.data
- the data to sendpublic boolean send(String bindingName, Object data, org.springframework.util.MimeType outputContentType)
send(String, String, Object)
and send(String, String, Object, MimeType)
methods.bindingName
- the name of the output binding. That said it requires a bit of clarification.
When using bridge.send("foo"...), the 'foo' typically represents the binding name. However
if such binding does not exist, the new binding will be created to support dynamic destinations.data
- the data to sendoutputContentType
- content type to be used to deal with output type conversionpublic boolean send(String bindingName, @Nullable String binderName, Object data)
bindingName
- the name of the output binding. That said it requires a bit of clarification.
When using bridge.send("foo"...), the 'foo' typically represents the binding name. However
if such binding does not exist, the new binding will be created to support dynamic destinations.binderName
- the name of the binder to use (e.g., 'kafka', 'rabbit') for cases where multiple binders are used. Can be null.data
- the data to sendpublic boolean send(String bindingName, @Nullable String binderName, Object data, org.springframework.util.MimeType outputContentType)
bindingName
- the name of the output binding. That said it requires a bit of clarification.
When using bridge.send("foo"...), the 'foo' typically represents the binding name. However
if such binding does not exist, the new binding will be created to support dynamic destinations.binderName
- the name of the binder to use (e.g., 'kafka', 'rabbit') for cases where multiple binders are used. Can be null.data
- the data to sendoutputContentType
- content type to be used to deal with output type conversionpublic void afterSingletonsInstantiated()
afterSingletonsInstantiated
in interface org.springframework.beans.factory.SmartInitializingSingleton
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.