Class DisconnectTracker
java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.tracking.DisconnectTracker
- All Implemented Interfaces:
JsonType
Command used to explicitly disconnect a tracker from the Fluxzero Runtime and release any claimed message segments.
This is typically only used in advanced scenarios, such as when working with external trackers that integrate with Fluxzero 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 Fluxzero Runtime.Methods inherited from class Command
getGuarantee
-
Constructor Details
-
DisconnectTracker
public DisconnectTracker()
-
-
Method Details
-
routingKey
Description copied from class:CommandOptionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Fluxzero Runtime.- Overrides:
routingKeyin classCommand- Returns:
- a routing key string, or
nullif not specified
-