Class ZeroMq
java.lang.Object
org.springframework.integration.zeromq.dsl.ZeroMq
Factory class for ZeroMq components DSL.
- Since:
- 5.4
- Author:
- Artem Bilan, Alessio Matricardi
- 
Method SummaryModifier and TypeMethodDescriptionstatic ZeroMqMessageProducerSpecinboundChannelAdapter(org.zeromq.ZContext context) Create an instance ofZeroMqMessageProducerSpecfor the providedZContext.static ZeroMqMessageProducerSpecinboundChannelAdapter(org.zeromq.ZContext context, org.zeromq.SocketType socketType) static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContext.static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context, int port) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContextand binding port.static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context, int port, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContext, binding port andSocketType.static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context, String connectUrl) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContextand connection URL.static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context, String connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContext, connection URL andSocketType.static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context, Supplier<String> connectUrl) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContextand connection URL supplier.static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context, Supplier<String> connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContext, connection URL supplier andSocketType.static ZeroMqMessageHandlerSpecoutboundChannelAdapter(org.zeromq.ZContext context, org.zeromq.SocketType socketType) static ZeroMqChannelSpecpubSubZeroMqChannel(org.zeromq.ZContext context) Create an instance ofZeroMqChannelSpecin pub/sub mode based on the providedZContext.static ZeroMqChannelSpeczeroMqChannel(org.zeromq.ZContext context) Create an instance ofZeroMqChannelSpecbased on the providedZContext.
- 
Method Details- 
zeroMqChannelCreate an instance ofZeroMqChannelSpecbased on the providedZContext.- Parameters:
- context- the- ZContextto use.
- Returns:
- the spec.
 
- 
pubSubZeroMqChannelCreate an instance ofZeroMqChannelSpecin pub/sub mode based on the providedZContext.- Parameters:
- context- the- ZContextto use.
- Returns:
- the spec.
 
- 
outboundChannelAdapterpublic static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, String connectUrl) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContextand connection URL.- Parameters:
- context- the- ZContextto use.
- connectUrl- the URL to connect a ZeroMq socket to.
- Returns:
- the spec.
 
- 
outboundChannelAdapterpublic static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, int port) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContextand binding port.- Parameters:
- context- the- ZContextto use.
- port- the port to bind ZeroMq socket to over TCP.
- Returns:
- the spec.
- Since:
- 6.4
 
- 
outboundChannelAdapterpublic static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, Supplier<String> connectUrl) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContextand connection URL supplier.- Parameters:
- context- the- ZContextto use.
- connectUrl- the supplier for URL to connect a ZeroMq socket to.
- Returns:
- the spec.
- Since:
- 5.5.9
 
- 
outboundChannelAdapterpublic static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, String connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContext, connection URL andSocketType.- Parameters:
- context- the- ZContextto use.
- connectUrl- the URL to connect a ZeroMq socket to.
- socketType- the- SocketTypefor ZeroMq socket.
- Returns:
- the spec.
 
- 
outboundChannelAdapterCreate an instance ofZeroMqMessageHandlerSpecfor the providedZContext. The created socket will be bound to a random port.- Parameters:
- context- the- ZContextto use.
- Returns:
- the spec.
- Since:
- 6.4
 
- 
outboundChannelAdapterpublic static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContextandSocketType. The created socket will be bound to a random port.- Parameters:
- context- the- ZContextto use.
- socketType- the- SocketTypefor ZeroMq socket.
- Returns:
- the spec.
- Since:
- 6.4
 
- 
outboundChannelAdapterpublic static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, int port, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContext, binding port andSocketType.- Parameters:
- context- the- ZContextto use.
- port- the port to bind ZeroMq socket to over TCP.
- socketType- the- SocketTypefor ZeroMq socket.
- Returns:
- the spec.
- Since:
- 6.4
 
- 
outboundChannelAdapterpublic static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, Supplier<String> connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpecfor the providedZContext, connection URL supplier andSocketType.- Parameters:
- context- the- ZContextto use.
- connectUrl- the supplier for URL to connect a ZeroMq socket to.
- socketType- the- SocketTypefor ZeroMq socket.
- Returns:
- the spec.
- Since:
- 5.5.9
 
- 
inboundChannelAdapterCreate an instance ofZeroMqMessageProducerSpecfor the providedZContext.- Parameters:
- context- the- ZContextto use.
- Returns:
- the spec.
 
- 
inboundChannelAdapterpublic static ZeroMqMessageProducerSpec inboundChannelAdapter(org.zeromq.ZContext context, org.zeromq.SocketType socketType) - Parameters:
- context- the- ZContextto use.
- socketType- the- SocketTypefor ZeroMq socket.
- Returns:
- the spec.
 
 
-