public class GrpcHeartbeatSource extends Object implements HeartbeatSource
HeartbeatSource
, which sends to AxonServer a Heartbeat
message.Constructor and Description |
---|
GrpcHeartbeatSource(AxonServerConnectionManager connectionManager,
String context)
Creates a
GrpcHeartbeatSource which uses an AxonServerConnectionManager to send heartbeats
messages to AxonServer. |
public GrpcHeartbeatSource(AxonServerConnectionManager connectionManager, String context)
GrpcHeartbeatSource
which uses an AxonServerConnectionManager
to send heartbeats
messages to AxonServer.connectionManager
- the AxonServerConnectionManager
context
- defines the (Bounded) Context for which heartbeats are sentpublic void pulse()
Sends a PlatformInboundInstruction
to AxonServer that contains a Heartbeat
message.
pulse
in interface HeartbeatSource
Copyright © 2010–2020. All rights reserved.