Expand description
Delegate traits and its implementations.
Structs§
- Composite
Delegate CompositeDelegateis a helpful struct to split theDelegateinto multiple small delegates, so that users do not need to implement fullDelegatewhen they only want to custom some methods in theDelegate.- Default
Merge Delegate - A default implementation of the
MergeDelegatetrait. - Noop
Reconnect Delegate - Noop implementation of
ReconnectDelegate.
Traits§
- Delegate
Delegateis the trait that clients must implement if they want to hook into the gossip layer ofSerf. All the methods must be thread-safe, as they can and generally will be called concurrently.- Merge
Delegate - 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.
- Reconnect
Delegate - Implemented to allow overriding the reconnect timeout for individual members.