Class DisconnectTracker
java.lang.Object
io.fluxcapacitor.common.api.Request
io.fluxcapacitor.common.api.Command
io.fluxcapacitor.common.api.tracking.DisconnectTracker
- All Implemented Interfaces:
JsonType
Command used to explicitly disconnect a tracker from the Flux platform and release any claimed message segments.
This is typically only used in advanced scenarios, such as when working with external trackers that integrate with Flux via long-polling or custom message ingestion mechanisms.
Use Cases
- Releasing a segment claim manually, especially when the tracker may not shut down gracefully
- Forcing rebalancing of segment claims across multiple tracker instances
- Implementing robust external consumer management (e.g. using webhooks or polling APIs)
Segment Reassignment
When a tracker is disconnected, any claimed segments are released and may be reassigned to other trackers.Optional Final Notification
IfsendFinalEmptyBatch
is true
, a final empty MessageBatch
is sent to the tracker prior to disconnection. This allows graceful shutdown or checkpointing.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Flux platform.Methods inherited from class io.fluxcapacitor.common.api.Command
getGuarantee
-
Constructor Details
-
DisconnectTracker
public DisconnectTracker()
-
-
Method Details
-
routingKey
Description copied from class:Command
Optionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Flux platform.- Overrides:
routingKey
in classCommand
- Returns:
- a routing key string, or
null
if not specified
-