Class AxonServerConfiguration.HeartbeatConfiguration
java.lang.Object
org.axonframework.axonserver.connector.AxonServerConfiguration.HeartbeatConfiguration
- Enclosing class:
AxonServerConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongThe interval between consecutive heartbeat message sent in milliseconds.longThe time window within which a response is expected in milliseconds.booleanIndication whether heartbeat messages between a client and Axon Server are enabled.voidsetEnabled(boolean enabled) Sets the indication whether heartbeat messages between a client and Axon Server are enabled.voidsetInterval(long interval) Sets the interval between consecutive heartbeat message sent in milliseconds.voidsetTimeout(long timeout) Sets the time window within which a response is expected in milliseconds.
-
Constructor Details
-
HeartbeatConfiguration
public HeartbeatConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Indication whether heartbeat messages between a client and Axon Server are enabled. When enabled, the connection will be abandoned if a heartbeat message response is not returned in a timely manner. Defaults totrue.- Returns:
- Indication whether heartbeat messages between a client and Axon Server are enabled.
-
setEnabled
public void setEnabled(boolean enabled) Sets the indication whether heartbeat messages between a client and Axon Server are enabled. When enabled, the connection will be abandoned if a heartbeat message response is not returned in a timely manner. Defaults totrue.- Parameters:
enabled- The Indication whether heartbeat messages between a client and Axon Server are enabled.
-
getInterval
public long getInterval()The interval between consecutive heartbeat message sent in milliseconds. Defaults to10_000milliseconds.- Returns:
- The interval between consecutive heartbeat message sent in milliseconds.
-
setInterval
public void setInterval(long interval) Sets the interval between consecutive heartbeat message sent in milliseconds. Defaults to10_000milliseconds.- Parameters:
interval- The interval between consecutive heartbeat message sent in milliseconds.
-
getTimeout
public long getTimeout()The time window within which a response is expected in milliseconds. The connection times out if no response is returned within this window. Defaults to7_500milliseconds.- Returns:
- The time window within which a response is expected in milliseconds.
-
setTimeout
public void setTimeout(long timeout) Sets the time window within which a response is expected in milliseconds. The connection times out if no response is returned within this window. Defaults to7_500milliseconds.- Parameters:
timeout- The time window within which a response is expected in milliseconds.
-