@Deprecated public class HeartbeatConfiguration extends Object implements ModuleConfiguration
Constructor and Description |
---|
HeartbeatConfiguration()
Deprecated.
Default constructor for
HeartbeatConfiguration , that uses Configuration in order to retrieve the
registered AxonServerConnectionManager and AxonServerConfiguration . |
HeartbeatConfiguration(Function<Configuration,AxonServerConnectionManager> connectionManagerSupplier,
Function<Configuration,AxonServerConfiguration> axonServerConfigurationSupplier)
Deprecated.
Creates a
HeartbeatConfiguration using the provided functions to retrieve the AxonServerConnectionManager and AxonServerConfiguration . |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Configuration config)
Deprecated.
Initializes the
GrpcHeartbeatSource component, needed to send heartbeats to AxonServer, any time the
client will receive an heartbeat from the server. |
public HeartbeatConfiguration()
HeartbeatConfiguration
, that uses Configuration
in order to retrieve the
registered AxonServerConnectionManager
and AxonServerConfiguration
.public HeartbeatConfiguration(Function<Configuration,AxonServerConnectionManager> connectionManagerSupplier, Function<Configuration,AxonServerConfiguration> axonServerConfigurationSupplier)
HeartbeatConfiguration
using the provided functions to retrieve the AxonServerConnectionManager
and AxonServerConfiguration
.connectionManagerSupplier
- function to retrieve the AxonServerConnectionManager
from Configuration
axonServerConfigurationSupplier
- function to retrieve the AxonServerConfiguration
from Configuration
public void initialize(Configuration config)
GrpcHeartbeatSource
component, needed to send heartbeats to AxonServer, any time the
client will receive an heartbeat from the server.
Initializes the HeartbeatMonitor
component, needed to force a disconnection if the communication between
the client and the server is no longer available.
initialize
in interface ModuleConfiguration
config
- the global configuration, providing access to generic componentsCopyright © 2010–2024. All rights reserved.