Class ZeroMqMessageProducerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
 
org.springframework.integration.dsl.MessageProducerSpec<ZeroMqMessageProducerSpec,ZeroMqMessageProducer>
 
org.springframework.integration.zeromq.dsl.ZeroMqMessageProducerSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<ZeroMqMessageProducer>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
public class ZeroMqMessageProducerSpec
extends MessageProducerSpec<ZeroMqMessageProducerSpec,ZeroMqMessageProducer> 
- Since:
- 5.4
- Author:
- Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedZeroMqMessageProducerSpec(org.zeromq.ZContext context) protectedZeroMqMessageProducerSpec(org.zeromq.ZContext context, org.zeromq.SocketType socketType) 
- 
Method SummaryModifier and TypeMethodDescriptionbindPort(int port) Configure a port for TCP protocol binding viaZMQ.Socket.bind(String).connectUrl(String connectUrl) Configure an URL forZMQ.Socket.connect(String).consumeDelay(Duration consumeDelay) Specify aDurationto delay consumption when no data received.messageConverter(MessageConverter messageConverter) Provide aMessageConverter(as an alternative tomessageMapper(org.springframework.integration.mapping.InboundMessageMapper<byte[]>)) for converting a consumed data into a message to produce.messageMapper(InboundMessageMapper<byte[]> messageMapper) Provide anInboundMessageMapperto convert a consumed data into a message to produce.receiveRaw(boolean receiveRaw) Whether rawZMsgis present as a payload of message to produce or it is fully converted to aMessageincludingZeroMqHeaders.TOPICheader (if any).socketConfigurer(Consumer<org.zeromq.ZMQ.Socket> socketConfigurer) Provide aConsumerto configure a socket with arbitrary options, like security.Specify topics theSocketType.SUBsocket is going to use for subscription.Methods inherited from class org.springframework.integration.dsl.MessageProducerSpecautoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
ZeroMqMessageProducerSpecprotected ZeroMqMessageProducerSpec(org.zeromq.ZContext context) 
- 
ZeroMqMessageProducerSpecprotected ZeroMqMessageProducerSpec(org.zeromq.ZContext context, org.zeromq.SocketType socketType) 
 
- 
- 
Method Details- 
consumeDelaySpecify aDurationto delay consumption when no data received.- Parameters:
- consumeDelay- the- Durationto delay consumption when empty.
- Returns:
- the spec
 
- 
messageMapperProvide anInboundMessageMapperto convert a consumed data into a message to produce.- Parameters:
- messageMapper- the- InboundMessageMapperto use.
- Returns:
- the spec
 
- 
messageConverterProvide aMessageConverter(as an alternative tomessageMapper(org.springframework.integration.mapping.InboundMessageMapper<byte[]>)) for converting a consumed data into a message to produce.- Parameters:
- messageConverter- the- MessageConverterto use.
- Returns:
- the spec
 
- 
receiveRawWhether rawZMsgis present as a payload of message to produce or it is fully converted to aMessageincludingZeroMqHeaders.TOPICheader (if any).- Parameters:
- receiveRaw- to convert from- ZMsgor not; defaults to convert.
- Returns:
- the spec
 
- 
socketConfigurerProvide aConsumerto configure a socket with arbitrary options, like security.- Parameters:
- socketConfigurer- the configurer for socket options.
- Returns:
- the spec
 
- 
topicsSpecify topics theSocketType.SUBsocket is going to use for subscription. It is ignored for all otherSocketTypes supported.- Parameters:
- topics- the topics to use.
- Returns:
- the spec
 
- 
connectUrlConfigure an URL forZMQ.Socket.connect(String).- Parameters:
- connectUrl- the URL to connect ZeroMq socket to.
- Returns:
- the spec
 
- 
bindPortConfigure a port for TCP protocol binding viaZMQ.Socket.bind(String).- Parameters:
- port- the port to bind ZeroMq socket to over TCP.
- Returns:
- the spec
 
 
-