Class SingleSegmentPublisher<E>
- java.lang.Object
-
- org.infinispan.persistence.support.SingleSegmentPublisher<E>
-
- All Implemented Interfaces:
NonBlockingStore.SegmentedPublisher<E>,org.reactivestreams.Publisher<E>
public class SingleSegmentPublisher<E> extends Object implements NonBlockingStore.SegmentedPublisher<E>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSegment()Returns the segment for all keys in the publisher.static <E> NonBlockingStore.SegmentedPublisher<E>singleSegment(int segment, org.reactivestreams.Publisher<? extends E> publisher)static <E> NonBlockingStore.SegmentedPublisher<E>singleSegment(org.reactivestreams.Publisher<? extends E> publisher)voidsubscribe(org.reactivestreams.Subscriber<? super E> s)
-
-
-
Method Detail
-
singleSegment
public static <E> NonBlockingStore.SegmentedPublisher<E> singleSegment(int segment, org.reactivestreams.Publisher<? extends E> publisher)
-
singleSegment
public static <E> NonBlockingStore.SegmentedPublisher<E> singleSegment(org.reactivestreams.Publisher<? extends E> publisher)
-
getSegment
public int getSegment()
Description copied from interface:NonBlockingStore.SegmentedPublisherReturns the segment for all keys in the publisher.- Specified by:
getSegmentin interfaceNonBlockingStore.SegmentedPublisher<E>- Returns:
- segment the data the publisher provides maps to.
-
-