RxJava



rx.operators
Class ChunkedOperation.NonOverlappingChunks<T,C>

java.lang.Object
  extended by rx.operators.ChunkedOperation.Chunks<T,C>
      extended by rx.operators.ChunkedOperation.NonOverlappingChunks<T,C>
Type Parameters:
T - The type of object all internal ChunkedOperation.Chunks objects record. The type of object being tracked by the ChunkedOperation.Chunk
Enclosing class:
ChunkedOperation

protected static class ChunkedOperation.NonOverlappingChunks<T,C>
extends ChunkedOperation.Chunks<T,C>

This class is an extension on the ChunkedOperation.Chunks class which only supports one active (not yet emitted) internal ChunkedOperation.Chunks object.


Constructor Summary
ChunkedOperation.NonOverlappingChunks(Observer<? super C> observer, Func0<? extends ChunkedOperation.Chunk<T,C>> chunkMaker)
           
 
Method Summary
 ChunkedOperation.Chunk<T,C> emitAndReplaceChunk()
           
 void pushValue(T value)
          This method pushes a value to all not yet emitted ChunkedOperation.Chunk objects.
 
Methods inherited from class rx.operators.ChunkedOperation.Chunks
createChunk, emitAllChunks, emitChunk, getChunk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedOperation.NonOverlappingChunks

public ChunkedOperation.NonOverlappingChunks(Observer<? super C> observer,
                                             Func0<? extends ChunkedOperation.Chunk<T,C>> chunkMaker)
Method Detail

emitAndReplaceChunk

public ChunkedOperation.Chunk<T,C> emitAndReplaceChunk()

pushValue

public void pushValue(T value)
Description copied from class: ChunkedOperation.Chunks
This method pushes a value to all not yet emitted ChunkedOperation.Chunk objects.

Overrides:
pushValue in class ChunkedOperation.Chunks<T,C>
Parameters:
value - The value to push to all not yet emitted ChunkedOperation.Chunk objects.