Class HeartbeatConfiguration
java.lang.Object
org.axonframework.axonserver.connector.heartbeat.HeartbeatConfiguration
- All Implemented Interfaces:
org.axonframework.config.ModuleConfiguration
@Deprecated
public class HeartbeatConfiguration
extends Object
implements org.axonframework.config.ModuleConfiguration
Deprecated.
in through use of the AxonServer java
connector
Module configuration that defines the components needed to enable heartbeat and monitor the availability of the
connection with AxonServer.
- Since:
- 4.2.1
- Author:
- Sara Pellegrini
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor forHeartbeatConfiguration, that usesConfigurationin order to retrieve the registeredAxonServerConnectionManagerandAxonServerConfiguration.HeartbeatConfiguration(Function<org.axonframework.config.Configuration, AxonServerConnectionManager> connectionManagerSupplier, Function<org.axonframework.config.Configuration, AxonServerConfiguration> axonServerConfigurationSupplier) Deprecated.Creates aHeartbeatConfigurationusing the provided functions to retrieve theAxonServerConnectionManagerandAxonServerConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(org.axonframework.config.Configuration config) Deprecated.Initializes theGrpcHeartbeatSourcecomponent, needed to send heartbeats to AxonServer, any time the client will receive an heartbeat from the server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.config.ModuleConfiguration
isType, phase, shutdown, start, unwrap
-
Constructor Details
-
HeartbeatConfiguration
public HeartbeatConfiguration()Deprecated.Default constructor forHeartbeatConfiguration, that usesConfigurationin order to retrieve the registeredAxonServerConnectionManagerandAxonServerConfiguration. -
HeartbeatConfiguration
public HeartbeatConfiguration(Function<org.axonframework.config.Configuration, AxonServerConnectionManager> connectionManagerSupplier, Function<org.axonframework.config.Configuration, AxonServerConfiguration> axonServerConfigurationSupplier) Deprecated.Creates aHeartbeatConfigurationusing the provided functions to retrieve theAxonServerConnectionManagerandAxonServerConfiguration.- Parameters:
connectionManagerSupplier- function to retrieve theAxonServerConnectionManagerfromConfigurationaxonServerConfigurationSupplier- function to retrieve theAxonServerConfigurationfromConfiguration
-
-
Method Details
-
initialize
public void initialize(org.axonframework.config.Configuration config) Deprecated.Initializes theGrpcHeartbeatSourcecomponent, needed to send heartbeats to AxonServer, any time the client will receive an heartbeat from the server.Initializes the
HeartbeatMonitorcomponent, needed to force a disconnection if the communication between the client and the server is no longer available.- Specified by:
initializein interfaceorg.axonframework.config.ModuleConfiguration- Parameters:
config- the global configuration, providing access to generic components
-