Module delegate

Module delegate 

Source
Expand description

Delegate traits and its implementations.

Structs§

CompositeDelegate
CompositeDelegate is a helpful struct to split the Delegate into multiple small delegates, so that users do not need to implement full Delegate when they only want to custom some methods in the Delegate.
DefaultMergeDelegate
A default implementation of the MergeDelegate trait.
NoopReconnectDelegate
Noop implementation of ReconnectDelegate.

Traits§

Delegate
Delegate is the trait that clients must implement if they want to hook into the gossip layer of Serf. All the methods must be thread-safe, as they can and generally will be called concurrently.
MergeDelegate
Used to involve a client in a potential cluster merge operation. Namely, when a node does a promised push/pull (as part of a join), the delegate is involved and allowed to cancel the join based on custom logic. The merge delegate is NOT invoked as part of the push-pull anti-entropy.
ReconnectDelegate
Implemented to allow overriding the reconnect timeout for individual members.