T - the value typepublic final class PublisherIterable<T>
extends java.lang.Object
implements org.reactivestreams.Publisher<T>
| Constructor and Description |
|---|
PublisherIterable(java.lang.Iterable<? extends T> iterable) |
| Modifier and Type | Method and Description |
|---|---|
static long |
addCap(long a,
long b) |
static void |
complete(org.reactivestreams.Subscriber<?> s)
Calls onSubscribe on the target Subscriber with the empty instance followed by a call to onComplete.
|
static void |
error(org.reactivestreams.Subscriber<?> s,
java.lang.Throwable e) |
static <T> long |
getAndAddCap(java.util.concurrent.atomic.AtomicLongFieldUpdater<T> updater,
T instance,
long n)
Atomically adds the value to the atomic variable, capping the sum at Long.MAX_VALUE
and returning the original value.
|
static long |
multiplyCap(long a,
long b) |
void |
subscribe(org.reactivestreams.Subscriber<? super T> s) |
public PublisherIterable(java.lang.Iterable<? extends T> iterable)
public static void complete(org.reactivestreams.Subscriber<?> s)
s - public static void error(org.reactivestreams.Subscriber<?> s,
java.lang.Throwable e)
public static long addCap(long a,
long b)
public static long multiplyCap(long a,
long b)
public static <T> long getAndAddCap(java.util.concurrent.atomic.AtomicLongFieldUpdater<T> updater,
T instance,
long n)
T - the type of the parent class of the fieldupdater - the field updaterinstance - the instance of the field to updaten - the value to add, n > 0, not validated