public interface JavaslangReactive
| Modifier and Type | Method and Description |
|---|---|
default <K,T> com.aol.simple.react.stream.traits.LazyFutureStream<T> |
cpuFutureStream(K key)
Get a LazyFutureStream optimized for CPU operations,
connected to the adapter cached in JavaslangPipes with the specified key
|
default com.aol.simple.react.stream.lazy.LazyReact |
cpuStreamBuilder() |
default <K,V> javaslang.control.Try<java.lang.Boolean> |
enqueue(K key,
V value)
Add a value to an simple-react Async.Queue
|
default <K,T> com.aol.simple.react.stream.traits.LazyFutureStream<T> |
ioFutureStream(K key)
Get a LazyFutureStream optimized for IO operations,
connected to the adapter cached in JavaslangPipes with the specified key
|
default com.aol.simple.react.stream.lazy.LazyReact |
ioStreamBuilder() |
default <T> javaslang.collection.Stream<T> |
publish(org.reactivestreams.Publisher<T> publisher)
Publish a reactive-streams publisher to a new Javaslang Stream
|
default <K,T> javaslang.collection.Stream<T> |
sequentialStream(K key)
Get a Javaslang Stream connected to the adapter cached in JavaslangPipes with the specified key
|
default <T> void |
subsribe(javaslang.collection.Stream<T> s,
org.reactivestreams.Subscriber<T> sub)
Have a reactive-stream subscriber subscribe to a Javaslang Stream.
|
default <T> void |
subsribe(javaslang.collection.Stream<T> s,
org.reactivestreams.Subscriber<T> sub,
java.util.concurrent.Executor exec)
Have a reactive-stream subscriber subscribe to a Javaslang Stream asynchronously.
|
default <T> com.aol.simple.react.stream.traits.LazyFutureStream<T> |
switchToCPU(com.aol.simple.react.stream.traits.LazyFutureStream<T> stream)
Switch LazyFutureStream into execution mode suitable for CPU bound execution (reuse cpuReactors task executor)
|
default <T> com.aol.simple.react.stream.traits.LazyFutureStream<T> |
switchToIO(com.aol.simple.react.stream.traits.LazyFutureStream<T> stream)
Switch LazyFutureStream into execution mode suitable for IO (reuse ioReactors task executor)
|
default <T> javaslang.collection.Stream<T> |
switchToSequential(com.aol.simple.react.stream.traits.LazyFutureStream<T> stream)
Switch a LazyFutureStream to a Javaslang Stream
|
default <K,V> javaslang.control.Try<java.lang.Boolean> enqueue(K key,
V value)
key - : identifier for registered Queuevalue - : value to add to QueuePipes.register(Object, com.aol.simple.react.async.Adapter)default <T> javaslang.collection.Stream<T> publish(org.reactivestreams.Publisher<T> publisher)
publisher - to publishdefault <T> void subsribe(javaslang.collection.Stream<T> s,
org.reactivestreams.Subscriber<T> sub)
s - Stream to subscribe tosub - Subscriberdefault <T> void subsribe(javaslang.collection.Stream<T> s,
org.reactivestreams.Subscriber<T> sub,
java.util.concurrent.Executor exec)
s - Stream to subscribe tosub - Subscriberexec - task executor for async operationsdefault <K,T> com.aol.simple.react.stream.traits.LazyFutureStream<T> ioFutureStream(K key)
key - of Adapter in JavaslangPipesdefault <K,T> javaslang.collection.Stream<T> sequentialStream(K key)
key - of Adapter in JavaslangPipesdefault <K,T> com.aol.simple.react.stream.traits.LazyFutureStream<T> cpuFutureStream(K key)
key - of Adapter in JavaslangPipesdefault com.aol.simple.react.stream.lazy.LazyReact ioStreamBuilder()
default com.aol.simple.react.stream.lazy.LazyReact cpuStreamBuilder()
default <T> javaslang.collection.Stream<T> switchToSequential(com.aol.simple.react.stream.traits.LazyFutureStream<T> stream)
stream - LazyFutureStream to convertdefault <T> com.aol.simple.react.stream.traits.LazyFutureStream<T> switchToIO(com.aol.simple.react.stream.traits.LazyFutureStream<T> stream)
stream - to convert to IO modedefault <T> com.aol.simple.react.stream.traits.LazyFutureStream<T> switchToCPU(com.aol.simple.react.stream.traits.LazyFutureStream<T> stream)
stream - to convert to CPU bound mode