Preferred to java. because the Callable may throw.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Callable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public T | block()
Overrides reactor. Mono and block indefinitely until a next signal is
received.
|
| public T | block(Duration
maximum time period to wait for before raising a m)RuntimeExceptionOverrides reactor. Mono and block until a next signal is
received or a timeout expires.
|
| public T | call()
Implements java. |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. |
| public void | subscribe(CoreSubscriber<? super T>
the actual)Subscriber interested into the published sequenceImplements abstract reactor. Implements reactor. Publisher#subscribe(Subscriber) that will bypass
Hooks#onLastOperator(Function) pointcut.
|
| callable | back to summary |
|---|---|
| pack-priv final Callable<? extends T> callable | |
| MonoCallable | back to summary |
|---|---|
| pack-priv MonoCallable(Callable<? extends T> callable) | |
| block | back to summary |
|---|---|
| public T block() Overrides reactor. Doc from reactor. Subscribe to this
Note that each block() will trigger a new subscription: in other words, the result might miss signal from hot publishers. | |
| block | back to summary |
|---|---|
| public T block(Duration m) Overrides reactor. Doc from reactor. Subscribe to this
Note that each block() will trigger a new subscription: in other words, the result might miss signal from hot publishers.
| |
| call | back to summary |
|---|---|
| public T call() throws Exception Implements java. Doc from java. Computes a result, or throws an exception if unable to do so. | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides default reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| subscribe | back to summary |
|---|---|
| public void subscribe(CoreSubscriber<? super T> actual) Implements abstract reactor. Implements reactor. Doc from reactor. An internal
In addition to behave as expected by
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CoreSubscriber | |
| pack-priv final Callable | |
| pack-priv volatile boolean | |
| pack-priv boolean | |
| pack-priv static final AtomicIntegerFieldUpdater | |
| pack-priv volatile int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CoreSubscriber | |
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public void | clear()
Implements java. |
| public boolean | isEmpty()
Implements java. true if this collection contains no elements.
|
| public T | poll()
Implements java. null if this queue is empty.
|
| public void | request(long
the strictly positive number of elements to requests to the upstream n)PublisherImplements org. Publisher until demand is signaled via this method.
|
| public int | requestFusion(int
the mode requested by the intermediate operator requestedMode)Implements reactor. |
| public int |
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super T> actual | |
| callable | back to summary |
|---|---|
| pack-priv final Callable<? extends T> callable | |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| done | back to summary |
|---|---|
| pack-priv boolean done | |
| REQUESTED_ONCE | back to summary |
|---|---|
pack-priv static final AtomicIntegerFieldUpdater<MonoCallable.
| |
| requestedOnce | back to summary |
|---|---|
| pack-priv volatile int requestedOnce | |
| MonoCallableSubscription | back to summary |
|---|---|
| pack-priv MonoCallableSubscription(CoreSubscriber<? super T> actual, Callable<? extends T> callable) | |
| actual | back to summary |
|---|---|
| public CoreSubscriber Implements reactor.
| |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this collection (optional operation). The collection will be empty after this method returns.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| poll | back to summary |
|---|---|
| public T poll() Implements java. Doc from java. Retrieves and removes the head of this queue,
or returns
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements org. Doc from org. No events will be sent by a
It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more,
it may be treated by the
Whatever has been requested can be sent by the
A | |
| requestFusion | back to summary |
|---|---|
| public int requestFusion(int requestedMode) Implements reactor. Doc from reactor. Request a specific fusion mode from this QueueSubscription. One should request either SYNC, ASYNC or ANY modes (never NONE) and the implementor should return NONE, SYNC or ASYNC (never ANY). For example, if a source supports only ASYNC fusion but the intermediate operator supports only SYNC fuseable sources, the operator may request SYNC fusion and the source can reject it via NONE, thus the operator can return NONE as well to downstream and the fusion doesn't happen.
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |