Package com.tangosol.net.topic
Interface Subscriber.ChannelOwnershipListener
- Enclosing interface:
Subscriber<V>
public static interface Subscriber.ChannelOwnershipListener
A listener that receives notification of channel ownership changes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onChannelsAssigned
(Set<Integer> setAssigned) The channels owned by a subscriber have changed.void
onChannelsLost
(Set<Integer> setLost) Channels previously owned by a subscriber have been lost, this is typically as a result of the subscriber being timed out or disconnection from the cluster.void
onChannelsRevoked
(Set<Integer> setRevoked) Channels previously owned by a subscriber have been revoked.
-
Method Details
-
onChannelsAssigned
The channels owned by a subscriber have changed.- Parameters:
setAssigned
- the set of channels assigned to the subscriber
-
onChannelsRevoked
Channels previously owned by a subscriber have been revoked.- Parameters:
setRevoked
- the set of revoked channels
-
onChannelsLost
Channels previously owned by a subscriber have been lost, this is typically as a result of the subscriber being timed out or disconnection from the cluster.- Parameters:
setLost
- the set of lost channels
-