public interface LazyToQueue<U> extends ToQueue<U>
Modifier and Type | Method and Description |
---|---|
default U |
add(U value,
Queue<U> queue) |
default void |
addToQueue(Queue queue) |
LazyReact |
getPopulator() |
LazyFutureStream<U> |
peekSync(java.util.function.Consumer<? super U> consumer) |
void |
returnPopulator(LazyReact service) |
<R> LazyFutureStream<R> |
then(java.util.function.Function<? super U,? extends R> fn,
java.util.concurrent.Executor exec) |
<R> LazyFutureStream<R> |
thenSync(java.util.function.Function<? super U,? extends R> fn) |
default Queue<U> |
toQueue()
Convert the current Stream to a simple-react Queue
|
default Queue<U> |
toQueue(java.util.function.Function<Queue,Queue> fn)
Method to create a Queue that can be modified by supplied funciton
|
default <K> void |
toQueue(java.util.Map<K,Queue<U>> shards,
java.util.function.Function<? super U,? extends K> sharder)
Sharded data in queues
|
getQueueFactory
<R> LazyFutureStream<R> then(java.util.function.Function<? super U,? extends R> fn, java.util.concurrent.Executor exec)
<R> LazyFutureStream<R> thenSync(java.util.function.Function<? super U,? extends R> fn)
LazyReact getPopulator()
LazyFutureStream<U> peekSync(java.util.function.Consumer<? super U> consumer)
default Queue<U> toQueue(java.util.function.Function<Queue,Queue> fn)
ToQueue
default void addToQueue(Queue queue)
addToQueue
in interface ToQueue<U>
default <K> void toQueue(java.util.Map<K,Queue<U>> shards, java.util.function.Function<? super U,? extends K> sharder)
ToQueue
void returnPopulator(LazyReact service)