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 Summary
Modifier and TypeMethodDescriptionstatic ZeroMqMessageProducerSpec
inboundChannelAdapter
(org.zeromq.ZContext context) Create an instance ofZeroMqMessageProducerSpec
for the providedZContext
.static ZeroMqMessageProducerSpec
inboundChannelAdapter
(org.zeromq.ZContext context, org.zeromq.SocketType socketType) static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
.static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context, int port) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
and binding port.static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context, int port, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
, binding port andSocketType
.static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context, String connectUrl) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
and connection URL.static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context, String connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
, connection URL andSocketType
.static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context, Supplier<String> connectUrl) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
and connection URL supplier.static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context, Supplier<String> connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
, connection URL supplier andSocketType
.static ZeroMqMessageHandlerSpec
outboundChannelAdapter
(org.zeromq.ZContext context, org.zeromq.SocketType socketType) static ZeroMqChannelSpec
pubSubZeroMqChannel
(org.zeromq.ZContext context) Create an instance ofZeroMqChannelSpec
in pub/sub mode based on the providedZContext
.static ZeroMqChannelSpec
zeroMqChannel
(org.zeromq.ZContext context) Create an instance ofZeroMqChannelSpec
based on the providedZContext
.
-
Method Details
-
zeroMqChannel
Create an instance ofZeroMqChannelSpec
based on the providedZContext
.- Parameters:
context
- theZContext
to use.- Returns:
- the spec.
-
pubSubZeroMqChannel
Create an instance ofZeroMqChannelSpec
in pub/sub mode based on the providedZContext
.- Parameters:
context
- theZContext
to use.- Returns:
- the spec.
-
outboundChannelAdapter
public static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, String connectUrl) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
and connection URL.- Parameters:
context
- theZContext
to use.connectUrl
- the URL to connect a ZeroMq socket to.- Returns:
- the spec.
-
outboundChannelAdapter
public static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, int port) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
and binding port.- Parameters:
context
- theZContext
to use.port
- the port to bind ZeroMq socket to over TCP.- Returns:
- the spec.
- Since:
- 6.4
-
outboundChannelAdapter
public static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, Supplier<String> connectUrl) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
and connection URL supplier.- Parameters:
context
- theZContext
to use.connectUrl
- the supplier for URL to connect a ZeroMq socket to.- Returns:
- the spec.
- Since:
- 5.5.9
-
outboundChannelAdapter
public static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, String connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
, connection URL andSocketType
.- Parameters:
context
- theZContext
to use.connectUrl
- the URL to connect a ZeroMq socket to.socketType
- theSocketType
for ZeroMq socket.- Returns:
- the spec.
-
outboundChannelAdapter
Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
. The created socket will be bound to a random port.- Parameters:
context
- theZContext
to use.- Returns:
- the spec.
- Since:
- 6.4
-
outboundChannelAdapter
public static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
andSocketType
. The created socket will be bound to a random port.- Parameters:
context
- theZContext
to use.socketType
- theSocketType
for ZeroMq socket.- Returns:
- the spec.
- Since:
- 6.4
-
outboundChannelAdapter
public static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, int port, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
, binding port andSocketType
.- Parameters:
context
- theZContext
to use.port
- the port to bind ZeroMq socket to over TCP.socketType
- theSocketType
for ZeroMq socket.- Returns:
- the spec.
- Since:
- 6.4
-
outboundChannelAdapter
public static ZeroMqMessageHandlerSpec outboundChannelAdapter(org.zeromq.ZContext context, Supplier<String> connectUrl, org.zeromq.SocketType socketType) Create an instance ofZeroMqMessageHandlerSpec
for the providedZContext
, connection URL supplier andSocketType
.- Parameters:
context
- theZContext
to use.connectUrl
- the supplier for URL to connect a ZeroMq socket to.socketType
- theSocketType
for ZeroMq socket.- Returns:
- the spec.
- Since:
- 5.5.9
-
inboundChannelAdapter
Create an instance ofZeroMqMessageProducerSpec
for the providedZContext
.- Parameters:
context
- theZContext
to use.- Returns:
- the spec.
-
inboundChannelAdapter
public static ZeroMqMessageProducerSpec inboundChannelAdapter(org.zeromq.ZContext context, org.zeromq.SocketType socketType) - Parameters:
context
- theZContext
to use.socketType
- theSocketType
for ZeroMq socket.- Returns:
- the spec.
-