public class ZeroMqMessageProducerSpec extends MessageProducerSpec<ZeroMqMessageProducerSpec,ZeroMqMessageProducer>
PARSER, targetloggerDEFAULT_PHASEOBJECT_TYPE_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
protected |
ZeroMqMessageProducerSpec(org.zeromq.ZContext context) |
protected |
ZeroMqMessageProducerSpec(org.zeromq.ZContext context,
org.zeromq.SocketType socketType) |
| Modifier and Type | Method and Description |
|---|---|
ZeroMqMessageProducerSpec |
bindPort(int port)
Configure a port for TCP protocol binding via
ZMQ.Socket.bind(String). |
ZeroMqMessageProducerSpec |
connectUrl(String connectUrl)
Configure an URL for
ZMQ.Socket.connect(String). |
ZeroMqMessageProducerSpec |
consumeDelay(java.time.Duration consumeDelay)
Specify a
Duration to delay consumption when no data received. |
ZeroMqMessageProducerSpec |
messageConverter(MessageConverter messageConverter)
Provide a
MessageConverter (as an alternative to messageMapper(org.springframework.integration.mapping.InboundMessageMapper<byte[]>))
for converting a consumed data into a message to produce. |
ZeroMqMessageProducerSpec |
messageMapper(InboundMessageMapper<byte[]> messageMapper)
Provide an
InboundMessageMapper to convert a consumed data into a message to produce. |
ZeroMqMessageProducerSpec |
receiveRaw(boolean receiveRaw)
Whether raw
ZMsg is present as a payload of message to produce or
it is fully converted to a Message including
ZeroMqHeaders.TOPIC header (if any). |
ZeroMqMessageProducerSpec |
socketConfigurer(java.util.function.Consumer<org.zeromq.ZMQ.Socket> socketConfigurer)
Provide a
Consumer to configure a socket with arbitrary options, like security. |
ZeroMqMessageProducerSpec |
topics(String... topics)
Specify topics the
SocketType.SUB socket is going to use for subscription. |
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, outputChannel, outputChannel, phase, sendTimeout, shouldTrack_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopafterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonprotected ZeroMqMessageProducerSpec(org.zeromq.ZContext context)
protected ZeroMqMessageProducerSpec(org.zeromq.ZContext context,
org.zeromq.SocketType socketType)
public ZeroMqMessageProducerSpec consumeDelay(java.time.Duration consumeDelay)
Duration to delay consumption when no data received.consumeDelay - the Duration to delay consumption when empty.public ZeroMqMessageProducerSpec messageMapper(InboundMessageMapper<byte[]> messageMapper)
InboundMessageMapper to convert a consumed data into a message to produce.messageMapper - the InboundMessageMapper to use.public ZeroMqMessageProducerSpec messageConverter(MessageConverter messageConverter)
MessageConverter (as an alternative to messageMapper(org.springframework.integration.mapping.InboundMessageMapper<byte[]>))
for converting a consumed data into a message to produce.messageConverter - the MessageConverter to use.public ZeroMqMessageProducerSpec receiveRaw(boolean receiveRaw)
ZMsg is present as a payload of message to produce or
it is fully converted to a Message including
ZeroMqHeaders.TOPIC header (if any).receiveRaw - to convert from ZMsg or not; defaults to convert.public ZeroMqMessageProducerSpec socketConfigurer(java.util.function.Consumer<org.zeromq.ZMQ.Socket> socketConfigurer)
Consumer to configure a socket with arbitrary options, like security.socketConfigurer - the configurer for socket options.public ZeroMqMessageProducerSpec topics(String... topics)
SocketType.SUB socket is going to use for subscription.
It is ignored for all other SocketTypes supported.topics - the topics to use.public ZeroMqMessageProducerSpec connectUrl(String connectUrl)
ZMQ.Socket.connect(String).connectUrl - the URL to connect ZeroMq socket to.public ZeroMqMessageProducerSpec bindPort(int port)
ZMQ.Socket.bind(String).port - the port to bind ZeroMq socket to over TCP.