src/main/java/io/reactivex/internal/operators/observable/ObservableReplay.java
public static <T> ConnectableObservable<T> create(ObservableSource<T> source,
            final long maxAge, final TimeUnit unit, final Scheduler scheduler, final int bufferSize) {
        return create(source, new ScheduledReplaySupplier<T>(bufferSize, maxAge, unit, scheduler));
    }
public static <T> ConnectableObservable<T> create(ObservableSource<T> source,
            final long maxAge, final TimeUnit unit, final Scheduler scheduler, final int bufferSize) {
        return create(source, new ScheduledReplaySupplier<T>(bufferSize, maxAge, unit, scheduler));
    }
public static < T > ConnectableObservable < T > create ( ObservableSource < T > source , final long maxAge , final TimeUnit unit , final Scheduler scheduler , final int bufferSize ) { return create ( source , new ScheduledReplaySupplier < T > ( bufferSize , maxAge , unit , scheduler ) ) ; }
Creates a replaying ConnectableObservable with a size and time bound buffer.
@param <T> the value type
@param source the source ObservableSource to use
@param maxAge the maximum age of entries
@param unit the unit of measure of the age amount
@param scheduler the target scheduler providing the current time
@param bufferSize the maximum number of elements to hold
@return the new ConnectableObservable instance
Creates a replaying ConnectableObservable with a size and time bound buffer .