public class IteratorHotStream<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
connected |
protected java.util.concurrent.atomic.AtomicReferenceArray<java.util.Queue<T>> |
connections |
protected java.util.concurrent.atomic.AtomicBoolean |
open |
protected java.util.concurrent.atomic.AtomicReference<java.util.concurrent.CompletableFuture<java.lang.Void>> |
pause |
Constructor and Description |
---|
IteratorHotStream() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPaused() |
protected void |
pause() |
protected IteratorHotStream<T> |
scheduleFixedDelayInternal(java.util.Iterator<T> it,
long delay,
java.util.concurrent.ScheduledExecutorService ex) |
protected IteratorHotStream<T> |
scheduleFixedRate(java.util.Iterator<T> it,
long rate,
java.util.concurrent.ScheduledExecutorService ex) |
protected void |
scheduleInternal(java.util.Iterator<T> it,
java.lang.String cron,
java.util.concurrent.ScheduledExecutorService ex) |
protected void |
unpause() |
protected final java.util.concurrent.atomic.AtomicReferenceArray<java.util.Queue<T>> connections
protected final java.util.concurrent.atomic.AtomicBoolean open
protected volatile int connected
protected final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.CompletableFuture<java.lang.Void>> pause
public boolean isPaused()
protected void unpause()
protected void pause()
protected void scheduleInternal(java.util.Iterator<T> it, java.lang.String cron, java.util.concurrent.ScheduledExecutorService ex)
protected IteratorHotStream<T> scheduleFixedDelayInternal(java.util.Iterator<T> it, long delay, java.util.concurrent.ScheduledExecutorService ex)
protected IteratorHotStream<T> scheduleFixedRate(java.util.Iterator<T> it, long rate, java.util.concurrent.ScheduledExecutorService ex)