public final class OperatorReplay
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | OperatorReplay.CustomReplaySubject<TInput,TIntermediate,TResult>A customizable replay subject with support for transformations. | 
| protected static class  | OperatorReplay.CustomReplaySubjectSubscribeFunc<TIntermediate,TResult>The subscription function. | 
| static class  | OperatorReplay.SubjectWrapper<T>A subject that wraps another subject. | 
| static class  | OperatorReplay.VirtualArrayList<T>Behaves like a normal, unbounded ArrayList but with virtual index. | 
| static class  | OperatorReplay.VirtualBoundedList<T>A bounded list which increases its size up to a maximum capacity, then
 behaves like a circular buffer with virtual indexes. | 
| static interface  | OperatorReplay.VirtualList<T>Base interface for logically indexing a list. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> Subject<T,T> | createScheduledSubject(Subject<T,T> subject,
                      Scheduler scheduler)Creates a subject whose client observers will observe events
 propagated through the given wrapped subject. | 
| static <T> Subject<T,T> | replayBuffered(int bufferSize)Create a CustomReplaySubject with the given buffer size. | 
| static <T> Subject<T,T> | replayWindowed(long time,
              java.util.concurrent.TimeUnit unit,
              int bufferSize,
              Scheduler scheduler)Create a CustomReplaySubject with the given time window length
 and optional buffer size. | 
| static <T> Observable.OnSubscribe<T> | subscriberOf(Observable<T> target)Return an OnSubscribeFunc which delegates the subscription to the given observable. | 
public static <T> Subject<T,T> replayBuffered(int bufferSize)
T - the element typebufferSize - the maximum number of items to keep in the bufferpublic static <T> Subject<T,T> createScheduledSubject(Subject<T,T> subject, Scheduler scheduler)
T - the element typesubject - the subject to wrapscheduler - the target schedulerpublic static <T> Subject<T,T> replayWindowed(long time, java.util.concurrent.TimeUnit unit, int bufferSize, Scheduler scheduler)
T - the source and return typetime - the length of the time windowunit - the unit of the time window lengthbufferSize - the buffer size if >= 0, otherwise, the buffer will be unlimitedscheduler - the scheduler from where the current time is retrieved. The
            observers will not observe on this scheduler.public static <T> Observable.OnSubscribe<T> subscriberOf(Observable<T> target)
T - the value typetarget - the target observable