Package com.tangosol.net.topic
Class Subscriber.ChannelOwnershipListeners<V>
- java.lang.Object
-
- com.tangosol.net.topic.Subscriber.ChannelOwnershipListeners<V>
-
- Type Parameters:
V
- the type of the elements being received from the topic
- All Implemented Interfaces:
Subscriber.Option<V,V>
- Enclosing interface:
- Subscriber<V>
public static class Subscriber.ChannelOwnershipListeners<V> extends Object implements Subscriber.Option<V,V>
A subscriberSubscriber.Option
that allows one or morelisteners
to be added to the subscriber, that will be notified of changes to the subscribers channel ownership.
-
-
Field Summary
-
Fields inherited from interface com.tangosol.net.topic.Subscriber.Option
NULL_OPTION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Subscriber.ChannelOwnershipListener>
getListeners()
Returns the list oflisteners
to add to the subscriber.static <V> Subscriber.ChannelOwnershipListeners<V>
none()
Create aSubscriber.ChannelOwnershipListeners
option with zerolisteners
.static <V> Subscriber.ChannelOwnershipListeners<V>
of(Subscriber.ChannelOwnershipListener... aListener)
Create aSubscriber.ChannelOwnershipListeners
option with one or morelisteners
.static <V> Subscriber.ChannelOwnershipListeners<V>
withListener(Subscriber.ChannelOwnershipListener... aListener)
Create aSubscriber.ChannelOwnershipListeners
option with one or morelisteners
.
-
-
-
Method Detail
-
getListeners
public List<Subscriber.ChannelOwnershipListener> getListeners()
Returns the list oflisteners
to add to the subscriber.- Returns:
- the list of
listeners
to add to the subscriber
-
of
public static <V> Subscriber.ChannelOwnershipListeners<V> of(Subscriber.ChannelOwnershipListener... aListener)
Create aSubscriber.ChannelOwnershipListeners
option with one or morelisteners
.- Type Parameters:
V
- the type of the elements being received from the topic- Parameters:
aListener
- thelisteners
to add to the subscriber- Returns:
- a
Subscriber.ChannelOwnershipListeners
option with one or morelisteners
-
withListener
public static <V> Subscriber.ChannelOwnershipListeners<V> withListener(Subscriber.ChannelOwnershipListener... aListener)
Create aSubscriber.ChannelOwnershipListeners
option with one or morelisteners
.- Type Parameters:
V
- the type of the elements being received from the topic- Parameters:
aListener
- thelisteners
to add to the subscriber- Returns:
- a
Subscriber.ChannelOwnershipListeners
option with one or morelisteners
-
none
public static <V> Subscriber.ChannelOwnershipListeners<V> none()
Create aSubscriber.ChannelOwnershipListeners
option with zerolisteners
.- Type Parameters:
V
- the type of the elements being received from the topic- Returns:
- a
Subscriber.ChannelOwnershipListeners
option with one or morelisteners
-
-