Class ZeroMqSupplierProperties
java.lang.Object
org.springframework.cloud.fn.supplier.zeromq.ZeroMqSupplierProperties
@ConfigurationProperties("zeromq.supplier")
@Validated
public class ZeroMqSupplierProperties
extends Object
- Since:
- 3.1.0
- Author:
- Daniel Frey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@org.hibernate.validator.constraints.Range(min=0L, message="\'bindPort\' must not be negative") int
@NotEmpty(message="connectUrl is required like tcp://server:port") String
@NotNull(message="\'consumeDelay\' is required") Duration
@NotNull(message="\'socketType\' is required") org.zeromq.SocketType
String[]
void
setBindPort
(int bindPort) void
setConnectUrl
(String connectUrl) void
setConsumeDelay
(Duration consumeDelay) Specify aDuration
to delay consumption when no data received.void
setSocketType
(org.zeromq.SocketType socketType) void
-
Constructor Details
-
ZeroMqSupplierProperties
public ZeroMqSupplierProperties()
-
-
Method Details
-
setSocketType
public void setSocketType(org.zeromq.SocketType socketType) - Parameters:
socketType
- theSocketType
to establish.
-
getSocketType
@NotNull(message="\'socketType\' is required") public @NotNull(message="\'socketType\' is required") org.zeromq.SocketType getSocketType() -
getConnectUrl
@NotEmpty(message="connectUrl is required like tcp://server:port") public @NotEmpty(message="connectUrl is required like tcp://server:port") String getConnectUrl() -
setConnectUrl
- Parameters:
connectUrl
- The ZeroMQ server connect url- See Also:
-
ZeroMqMessageProducer.setConnectUrl(String)
-
getBindPort
@Range(min=0L, message="\'bindPort\' must not be negative") public @org.hibernate.validator.constraints.Range(min=0L, message="\'bindPort\' must not be negative") int getBindPort() -
setBindPort
public void setBindPort(int bindPort) - Parameters:
bindPort
- The Port to bind to on all interfaces- See Also:
-
ZeroMqMessageProducer.setBindPort(int)
-
getConsumeDelay
@NotNull(message="\'consumeDelay\' is required") public @NotNull(message="\'consumeDelay\' is required") Duration getConsumeDelay() -
setConsumeDelay
Specify aDuration
to delay consumption when no data received.- Parameters:
consumeDelay
- theDuration
to delay consumption when empty.
-
getTopics
-
setTopics
- Parameters:
topics
- The ZeroMQ Topics to subscribe to- See Also:
-
ZeroMqMessageProducer.setTopics(String...)
-