RxJava



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

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

protected static class ChunkedOperation.ChunkObserver<T,C>
extends java.lang.Object
implements Observer<T>

This ChunkedOperation.ChunkObserver object can be constructed using a ChunkedOperation.Chunks object, a Observer object, and a ChunkedOperation.ChunkCreator object. The ChunkedOperation.ChunkCreator will manage the creation, and in some rare cases emission of internal ChunkedOperation.Chunk objects in the specified ChunkedOperation.Chunks object. Under normal circumstances the ChunkedOperation.Chunks object specifies when a created ChunkedOperation.Chunk is emitted.


Constructor Summary
ChunkedOperation.ChunkObserver(ChunkedOperation.Chunks<T,C> chunks, Observer<? super C> observer, ChunkedOperation.ChunkCreator creator)
           
 
Method Summary
 void onCompleted()
          Notifies the Observer that the Observable has finished sending push-based notifications.
 void onError(java.lang.Throwable e)
          Notifies the Observer that the Observable has experienced an error condition.
 void onNext(T args)
          Provides the Observer with new data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkedOperation.ChunkObserver

public ChunkedOperation.ChunkObserver(ChunkedOperation.Chunks<T,C> chunks,
                                      Observer<? super C> observer,
                                      ChunkedOperation.ChunkCreator creator)
Method Detail

onCompleted

public void onCompleted()
Description copied from interface: Observer
Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this closure if it calls onError.

Specified by:
onCompleted in interface Observer<T>

onError

public void onError(java.lang.Throwable e)
Description copied from interface: Observer
Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this closure, it will not thereafter call onNext or onCompleted.

Specified by:
onError in interface Observer<T>

onNext

public void onNext(T args)
Description copied from interface: Observer
Provides the Observer with new data.

The Observable calls this closure 1 or more times, unless it calls onError in which case this closure may never be called.

The Observable will not call this closure again after it calls either onCompleted or onError.

Specified by:
onNext in interface Observer<T>