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>

public static class Subscriber.SubscribeTo<V> extends Object implements Subscriber.Option<V,V>
An option to allow a subscriber to manually decide which channels it will subscribe to.

Invalid channels will be ignored.

  • Field Details

  • 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

      public static <V> Subscriber.SubscribeTo<V> auto()