T - the element typepublic abstract static class Delay.DelayedObservation<T> extends DefaultRunnable
| Modifier and Type | Field and Description |
|---|---|
protected Observer<? super T> |
observer
The observer.
|
protected java.util.concurrent.BlockingQueue<java.io.Closeable> |
queue
The queue.
|
lock| Constructor and Description |
|---|
DelayedObservation(java.util.concurrent.locks.Lock lock,
java.util.concurrent.BlockingQueue<java.io.Closeable> queue,
Observer<? super T> observer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onRun()
The alternative run method, which will be called by the original run() method under lock.
|
abstract void |
onRun2()
The delivery method.
|
cancel, cancelled, runprotected final java.util.concurrent.BlockingQueue<java.io.Closeable> queue
public DelayedObservation(@Nonnull
java.util.concurrent.locks.Lock lock,
@Nonnull
java.util.concurrent.BlockingQueue<java.io.Closeable> queue,
@Nonnull
Observer<? super T> observer)
lock - the lockqueue - the queue for deregistrationobserver - the observer to interact withpublic final void onRun()
DefaultRunnableonRun in class DefaultRunnablepublic abstract void onRun2()