@ConfigurationProperties(value="zeromq.supplier") @Validated public class ZeroMqSupplierProperties extends Object
Constructor and Description |
---|
ZeroMqSupplierProperties() |
Modifier and Type | Method and Description |
---|---|
@Range(min=0L,message="\'bindPort\' must not be negative") int |
getBindPort() |
@NotEmpty(message="connectUrl is required like tcp://server:port") String |
getConnectUrl() |
@NotNull(message="\'consumeDelay\' is required") Duration |
getConsumeDelay() |
@NotNull(message="\'socketType\' is required") org.zeromq.SocketType |
getSocketType() |
String[] |
getTopics() |
void |
setBindPort(int bindPort) |
void |
setConnectUrl(String connectUrl) |
void |
setConsumeDelay(Duration consumeDelay)
Specify a
Duration to delay consumption when no data received. |
void |
setSocketType(org.zeromq.SocketType socketType) |
void |
setTopics(String... topics) |
public void setSocketType(org.zeromq.SocketType socketType)
socketType
- the SocketType
to establish.@NotNull(message="\'socketType\' is required") public @NotNull(message="\'socketType\' is required") org.zeromq.SocketType getSocketType()
@NotEmpty(message="connectUrl is required like tcp://server:port") public @NotEmpty(message="connectUrl is required like tcp://server:port") String getConnectUrl()
public void setConnectUrl(String connectUrl)
connectUrl
- The ZeroMQ server connect urlZeroMqMessageProducer.setConnectUrl(String)
@Range(min=0L, message="\'bindPort\' must not be negative") public @Range(min=0L,message="\'bindPort\' must not be negative") int getBindPort()
public void setBindPort(int bindPort)
bindPort
- The Port to bind to on all interfacesZeroMqMessageProducer.setBindPort(int)
@NotNull(message="\'consumeDelay\' is required") public @NotNull(message="\'consumeDelay\' is required") Duration getConsumeDelay()
public void setConsumeDelay(Duration consumeDelay)
Duration
to delay consumption when no data received.consumeDelay
- the Duration
to delay consumption when empty.public String[] getTopics()
public void setTopics(String... topics)
topics
- The ZeroMQ Topics to subscribe toZeroMqMessageProducer.setTopics(String...)
Copyright © 2022. All rights reserved.