Package com.tangosol.net.topic
Interface Subscriber.Option<V,U>
- 
- Type Parameters:
- V- the type of the value on the topic
- U- the type of the value returned to the subscriber
 - All Known Implementing Classes:
- Subscriber.ChannelOwnershipListeners,- Subscriber.CompleteOnEmpty,- Subscriber.Convert,- Subscriber.Filtered,- Subscriber.Name
 - Enclosing interface:
- Subscriber<V>
 
 public static interface Subscriber.Option<V,U>A marker interface to indicate that a class is a validSubscriber.Optionfor aSubscriber.Options to use with NamedTopic.createSubscriber(Subscriber.Option...)Subscriber Option Description Subscriber.Name.of(String)Specify subscriber group name. 
 For each value delivered to a subscriber group, only one member of the group receives the value.Subscriber.Filtered.by(Filter)Only Subscriber.receive()values matching this Filter.
 Only one Filter per subscription group.Subscriber.Convert.using(ValueExtractor)Convert topic value using provided ValueExtractorprior toSubscriber.receive().
 Only one Converter per subscription group.Subscriber.CompleteOnEmpty.enabled()When no values left to Subscriber.receive(), returnedCompletableFuture.get()returns null Element.
 By default, returnedCompletableFuture.get()blocks until next topic value is available to return.All members of subscriber group share at most a single Filterand singleConverter. The lastSubscriberjoining the group and specifying these option(s) are the ones used by all subscriber group members. Note that when both aSubscriber.Filtered.by(Filter)andSubscriber.Convert.using(ValueExtractor)are specified, theFilteris applied first and onlyNamedTopicvalues matching the filter are converted before beingreceived by the Subscriber(s).
- 
- 
Field SummaryFields Modifier and Type Field Description static Subscriber.OptionNULL_OPTION
 - 
Method SummaryStatic Methods Modifier and Type Method Description static <V,U>
 Subscriber.Option<V,U>nullOption()A null implementation of anSubscriber.Option.
 
- 
- 
- 
Field Detail- 
NULL_OPTIONstatic final Subscriber.Option NULL_OPTION 
 
- 
 - 
Method Detail- 
nullOptionstatic <V,U> Subscriber.Option<V,U> nullOption() A null implementation of anSubscriber.Option.- Type Parameters:
- V- the type of the value on the topic
- U- the type of the value returned to the subscriber
- Returns:
- a null implementation of an Subscriber.Option.
 
 
- 
 
-