Package com.tangosol.net.topic
Class Subscriber.SubscribeTo<V>
java.lang.Object
com.tangosol.net.topic.Subscriber.SubscribeTo<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>
An option to allow a subscriber to manually decide which channels
it will subscribe to.
Invalid channels will be ignored.
-
Field Summary
FieldsFields inherited from interface com.tangosol.net.topic.Subscriber.Option
NULL_OPTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> Subscriber.SubscribeTo
<V> auto()
int[]
Return the channels to subscribe to.
-
Field Details
-
AUTO
-
-
Constructor Details
-
SubscribeTo
public SubscribeTo(int[] anChannel)
-
-
Method Details
-
getChannels
public int[] getChannels()Return the channels to subscribe to.- Returns:
- the channels to subscribe to
-
auto
-