Class OverlapBufferStreamId<T>
- java.lang.Object
-
- org.streamingpool.core.service.streamid.OverlapBufferStreamId<T>
-
- Type Parameters:
T- the type of the data stream
- All Implemented Interfaces:
java.io.Serializable,StreamId<java.util.List<T>>
public class OverlapBufferStreamId<T> extends java.lang.Object implements StreamId<java.util.List<T>>, java.io.Serializable
Provide an overlapping buffer for the specified source id. The buffer begins wheneverBufferSpecification.startId()stream emits an item and ends when one of theBufferSpecification.endStreamMatchers()} matches an end. Optionally, it is possible to specify a timeout for the closing stream in case it does not emit items.The behavior is very similar to the
buffer(Observable<TOpening> bufferOpenings, Func1<TOpening, Observable <TClosing>> bufferClosingSelector)RxJava 1 operator.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferSpecificationbufferSpecification()booleanequals(java.lang.Object obj)inthashCode()static <T> OverlapBufferStreamId<T>of(StreamId<T> sourceId, BufferSpecification bufferSpecification)StreamId<T>sourceId()java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static <T> OverlapBufferStreamId<T> of(StreamId<T> sourceId, BufferSpecification bufferSpecification)
-
bufferSpecification
public BufferSpecification bufferSpecification()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-