T - @Immutable public abstract class Observer<T> extends Object implements Immutable
| Modifier and Type | Method and Description |
|---|---|
Observer<List<T>> |
buffer(long timespan,
long timeskip,
TimeUnit unit) |
Observer<List<T>> |
buffer(long timespan,
long timeskip,
TimeUnit unit,
int count) |
Observer<List<T>> |
buffer(long timespan,
TimeUnit unit) |
Observer<List<T>> |
buffer(long timespan,
TimeUnit unit,
int count) |
static void |
complete(BlockingQueue<?> queue) |
Observer<T> |
debounce(long intervalDurationInMillis) |
Observer<T> |
debounce(long intervalDuration,
TimeUnit unit) |
Observer<T> |
delay(long delayInMillis) |
Observer<T> |
delay(long delay,
TimeUnit unit) |
Observer<T> |
distinct() |
Observer<T> |
distinctBy(Function<? super T,?> keyMapper) |
Observer<T> |
filter(Predicate<? super T> filter) |
<U> Observer<U> |
flatMap(Function<? super T,Collection<U>> map) |
static Observer<Long> |
interval(long periodInMillis) |
static Observer<Long> |
interval(long initialDelayInMillis,
long periodInMillis) |
static Observer<Long> |
interval(long initialDelay,
long period,
TimeUnit unit) |
static Observer<Long> |
interval(long period,
TimeUnit unit) |
Observer<T> |
limit(long maxSize) |
<U> Observer<U> |
map(Function<? super T,U> map) |
void |
observe(Consumer<? super T> action) |
void |
observe(Consumer<? super T> action,
Consumer<? super Exception> onError) |
abstract void |
observe(Consumer<? super T> action,
Consumer<? super Exception> onError,
Runnable onComplete) |
static <T> Observer<T> |
of(BlockingQueue<T> queue) |
static <T> Observer<T> |
of(Collection<T> c) |
static <T> Observer<T> |
of(Iterator<T> iter) |
Observer<T> |
skip(long n) |
Observer<T> |
throttleFirst(long intervalDurationInMillis) |
Observer<T> |
throttleFirst(long intervalDuration,
TimeUnit unit) |
Observer<T> |
throttleLast(long intervalDurationInMillis) |
Observer<T> |
throttleLast(long intervalDuration,
TimeUnit unit) |
Observer<Timed<T>> |
timeInterval() |
static Observer<Long> |
timer(long delayInMillis) |
static Observer<Long> |
timer(long delay,
TimeUnit unit) |
Observer<Timed<T>> |
timestamp() |
public static void complete(BlockingQueue<?> queue)
queue - public static <T> Observer<T> of(BlockingQueue<T> queue)
T - queue - public static <T> Observer<T> of(Collection<T> c)
T - c - public static <T> Observer<T> of(Iterator<T> iter)
T - iter - public static Observer<Long> timer(long delayInMillis)
delayInMillis - public static Observer<Long> timer(long delay, TimeUnit unit)
delay - unit - public static Observer<Long> interval(long periodInMillis)
periodInMillis - public static Observer<Long> interval(long initialDelayInMillis, long periodInMillis)
initialDelayInMillis - periodInMillis - public static Observer<Long> interval(long period, TimeUnit unit)
period - unit - public static Observer<Long> interval(long initialDelay, long period, TimeUnit unit)
initialDelay - period - unit - public Observer<T> debounce(long intervalDurationInMillis)
intervalDurationInMillis - public Observer<T> debounce(long intervalDuration, TimeUnit unit)
intervalDuration - unit - public Observer<T> throttleFirst(long intervalDurationInMillis)
intervalDurationInMillis - public Observer<T> throttleFirst(long intervalDuration, TimeUnit unit)
intervalDuration - unit - public Observer<T> throttleLast(long intervalDurationInMillis)
intervalDurationInMillis - public Observer<T> throttleLast(long intervalDuration, TimeUnit unit)
intervalDuration - unit - public Observer<T> delay(long delayInMillis)
delayInMillis - public Observer<T> delay(long delay, TimeUnit unit)
delay - unit - public Observer<Timed<T>> timeInterval()
public Observer<Timed<T>> timestamp()
public Observer<T> distinctBy(Function<? super T,?> keyMapper)
keyMapper - public <U> Observer<U> map(Function<? super T,U> map)
U - map - public <U> Observer<U> flatMap(Function<? super T,Collection<U>> map)
U - map - public Observer<List<T>> buffer(long timespan, TimeUnit unit)
timespan - unit - public Observer<List<T>> buffer(long timespan, TimeUnit unit, int count)
timespan - unit - count - public Observer<List<T>> buffer(long timespan, long timeskip, TimeUnit unit)
timespan - timeskip - unit - public Observer<List<T>> buffer(long timespan, long timeskip, TimeUnit unit, int count)
timespan - timeskip - unit - count - public void observe(Consumer<? super T> action, Consumer<? super Exception> onError)
action - onError - Copyright © 2021. All rights reserved.