Uses of Interface
io.activej.csp.ChannelSupplier
Packages that use ChannelSupplier
Package
Description
-
Uses of ChannelSupplier in io.activej.csp
Classes in io.activej.csp that implement ChannelSupplierModifier and TypeClassDescriptionclassstatic final classstatic classRepresents aChannelSupplierwhich always returns a promise ofnull.static final classRepresents aChannelSupplierwhich always returns a promise of exception.static final classRepresents aChannelSupplierwhich wraps the provided iterator and returns promises of iterator's values untilhasNext()is true, when there are no more values left, a promise ofnullis returned.static final classRepresents aChannelSupplierof one value.Methods in io.activej.csp that return ChannelSupplierModifier and TypeMethodDescriptiondefault ChannelSupplier<T>ChannelSupplier.async()Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier and makes its promise complete asynchronously.static <T> ChannelSupplier<T>ChannelSuppliers.concat(ChannelSupplier<? extends T>... suppliers) static <T> ChannelSupplier<T>ChannelSuppliers.concat(ChannelSupplier<? extends T> supplier1, ChannelSupplier<? extends T> supplier2) static <T> ChannelSupplier<T>ChannelSuppliers.concat(Iterator<? extends ChannelSupplier<? extends T>> iterator) Creates a new ChannelSupplier which onget()call returns the result wrapped inpromiseof the first ChannelSuppliers'promisethat was successfully completed with a non-null result.static <T> ChannelSupplier<T>ChannelSuppliers.concat(List<ChannelSupplier<? extends T>> suppliers) default ChannelSupplier<T>Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier and checks if its Promise's value(s) match(es) the predicate, leaving only those value(s) which pass the test.default ChannelSupplier<T>ChannelOutput.getSupplier()default ChannelSupplier<T>ChannelOutput.getSupplier(ChannelQueue<T> queue) static ChannelSupplier<io.activej.bytebuf.ByteBuf>ChannelSuppliers.inputStreamAsChannelSupplier(Executor executor, int bufSize, InputStream inputStream) Creates an asynchronousChannelSupplier<io.activej.bytebuf.ByteBuf>out of someInputStream.static ChannelSupplier<io.activej.bytebuf.ByteBuf>ChannelSuppliers.inputStreamAsChannelSupplier(Executor executor, io.activej.common.MemSize bufSize, InputStream is) static ChannelSupplier<io.activej.bytebuf.ByteBuf>ChannelSuppliers.inputStreamAsChannelSupplier(Executor executor, InputStream is) Creates an asynchronousChannelSupplierout of someInputStream.default ChannelSupplier<T>ChannelSupplier.lenient()Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier.default <V> ChannelSupplier<V>Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier and when its Promise completes, applies providedfnto the result.default <V> ChannelSupplier<V>Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier and applies providedfnto its Promise asynchronously.static <T> ChannelSupplier<T>ChannelSupplier.of()Returns aChannelSuppliers.ChannelSupplierEmpty.static <T> ChannelSupplier<T>ChannelSupplier.of(io.activej.async.function.AsyncSupplier<T> supplier) static <T> ChannelSupplier<T>ChannelSupplier.of(io.activej.async.function.AsyncSupplier<T> supplier, @Nullable io.activej.async.process.AsyncCloseable closeable) WrapsAsyncSupplierin ChannelSupplier, whenget()is called,AsyncSupplier'sget()will be executed.static <T> ChannelSupplier<T>ChannelSupplier.of(T value) Wraps providedvalueto aChannelSuppliers.ChannelSupplierOfValue.static <T> ChannelSupplier<T>ChannelSupplier.of(T... values) static <T> ChannelSupplier<T>ChannelSupplier.ofAnotherEventloop(@NotNull io.activej.eventloop.Eventloop anotherEventloop, @NotNull ChannelSupplier<T> anotherEventloopSupplier) static <T> ChannelSupplier<T>ChannelSupplier.ofConsumer(Consumer<ChannelConsumer<T>> consumer, ChannelQueue<T> queue) Returns a ChannelSupplier received fromChannelQueue.static <T> ChannelSupplier<T>ChannelSupplier.ofException(Exception e) Returns aChannelSuppliers.ChannelSupplierOfExceptionof provided exception.static <T> ChannelSupplier<T>ChannelSupplier.ofIterator(Iterator<? extends T> iterator) Wraps providedIteratorintoChannelSuppliers.ChannelSupplierOfIterator.static <T> ChannelSupplier<T>ChannelSupplier.ofLazyProvider(Supplier<? extends ChannelSupplier<T>> provider) static <T> ChannelSupplier<T>static <T> ChannelSupplier<T>ChannelSupplier.ofPromise(io.activej.promise.Promise<? extends ChannelSupplier<T>> promise) Wrapspromiseof ChannelSupplier in ChannelSupplier or returns the ChannelSupplier frompromiseitself.static ChannelSupplier<io.activej.bytebuf.ByteBuf>ChannelSupplier.ofSocket(AsyncTcpSocket socket) WrapsAsyncTcpSocket.read()operation intoChannelSupplierstatic <T> ChannelSupplier<T>static <T> ChannelSupplier<T>ChannelSupplier.ofSupplier(Supplier<io.activej.promise.Promise<T>> supplier) Wraps provided defaultSupplierto ChannelSupplier.default ChannelSupplier<T>Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier and when its Promise completes successfully, the result is accepted by the providedfn.static <T> ChannelSupplier<T>ChannelSuppliers.prefetch(int count, ChannelSupplier<T> actual) static <T> ChannelSupplier<T>ChannelSuppliers.prefetch(ChannelSupplier<T> actual) static <T,V> ChannelSupplier<V> ChannelSuppliers.remap(ChannelSupplier<T> supplier, Function<? super T, ? extends Iterator<? extends V>> fn) Transforms thisChannelSupplierdata oftype with provided fn, which returns anIteratorof atype. default ChannelSupplier<T>Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier, when itsgetis called, its values will be returned until they don't fit thepredicate.default ChannelSupplier<T>ChannelSupplier.withEndOfStream(UnaryOperator<io.activej.promise.Promise<Void>> fn) default ChannelSupplier<T>ChannelSupplier.withExecutor(io.activej.async.process.AsyncExecutor asyncExecutor) Creates and returns a newAbstractChannelSupplierbased on current ChannelSupplier and makes its promise executed by the providedasyncExecutor.Methods in io.activej.csp with parameters of type ChannelSupplierModifier and TypeMethodDescriptionstatic InputStreamChannelSuppliers.channelSupplierAsInputStream(io.activej.eventloop.Eventloop eventloop, ChannelSupplier<io.activej.bytebuf.ByteBuf> channelSupplier) Creates anInputStreamout of aChannelSupplier<io.activej.bytebuf.ByteBuf>.static <T,A, R> io.activej.promise.Promise<R> ChannelSuppliers.collect(ChannelSupplier<T> supplier, A initialValue, io.activej.common.function.BiConsumerEx<A, T> accumulator, io.activej.common.function.FunctionEx<A, R> finisher) Collects data provided by thesupplierasynchronously and returns a promise of accumulated result.static <T> ChannelSupplier<T>ChannelSuppliers.concat(ChannelSupplier<? extends T>... suppliers) static <T> ChannelSupplier<T>ChannelSuppliers.concat(ChannelSupplier<? extends T> supplier1, ChannelSupplier<? extends T> supplier2) static <T> ChannelSupplier<T>ChannelSupplier.ofAnotherEventloop(@NotNull io.activej.eventloop.Eventloop anotherEventloop, @NotNull ChannelSupplier<T> anotherEventloopSupplier) static <T> ChannelSupplier<T>ChannelSuppliers.prefetch(int count, ChannelSupplier<T> actual) static <T> ChannelSupplier<T>ChannelSuppliers.prefetch(ChannelSupplier<T> actual) static <T,V> ChannelSupplier<V> ChannelSuppliers.remap(ChannelSupplier<T> supplier, Function<? super T, ? extends Iterator<? extends V>> fn) Transforms thisChannelSupplierdata oftype with provided fn, which returns anIteratorof atype. io.activej.promise.Promise<Void>ChannelInput.set(ChannelSupplier<T> input) static <T> io.activej.promise.Promise<Void>ChannelSuppliers.streamTo(ChannelSupplier<T> supplier, ChannelConsumer<T> consumer) Streams data from thesupplierto theconsumeruntilget()ofsupplierreturns a promise ofnull.Method parameters in io.activej.csp with type arguments of type ChannelSupplierModifier and TypeMethodDescriptionstatic <T> ChannelSupplier<T>ChannelSuppliers.concat(Iterator<? extends ChannelSupplier<? extends T>> iterator) Creates a new ChannelSupplier which onget()call returns the result wrapped inpromiseof the first ChannelSuppliers'promisethat was successfully completed with a non-null result.static <T> ChannelSupplier<T>ChannelSuppliers.concat(List<ChannelSupplier<? extends T>> suppliers) static <T> ChannelSupplier<T>ChannelSupplier.ofLazyProvider(Supplier<? extends ChannelSupplier<T>> provider) static <T> ChannelSupplier<T>ChannelSupplier.ofPromise(io.activej.promise.Promise<? extends ChannelSupplier<T>> promise) Wrapspromiseof ChannelSupplier in ChannelSupplier or returns the ChannelSupplier frompromiseitself.static <T> ChannelConsumer<T>ChannelConsumer.ofSupplier(io.activej.async.function.AsyncConsumer<ChannelSupplier<T>> supplierConsumer) static <T> ChannelConsumer<T>ChannelConsumer.ofSupplier(io.activej.async.function.AsyncConsumer<ChannelSupplier<T>> supplierConsumer, ChannelQueue<T> queue) static <T> io.activej.promise.Promise<Void>ChannelSuppliers.streamTo(io.activej.common.collection.Try<ChannelSupplier<T>> supplier, io.activej.common.collection.Try<ChannelConsumer<T>> consumer) static <T> io.activej.promise.Promise<Void>ChannelSuppliers.streamTo(io.activej.promise.Promise<ChannelSupplier<T>> supplier, io.activej.promise.Promise<ChannelConsumer<T>> consumer) Constructor parameters in io.activej.csp with type arguments of type ChannelSupplierModifierConstructorDescriptionChannelSupplierConcat(Iterator<? extends ChannelSupplier<? extends T>> iterator, boolean ownership) -
Uses of ChannelSupplier in io.activej.csp.binary
Methods in io.activej.csp.binary that return ChannelSupplierModifier and TypeMethodDescriptionfinal <T> ChannelSupplier<T>BinaryChannelSupplier.decodeStream(ByteBufsDecoder<T> decoder) Methods in io.activej.csp.binary with parameters of type ChannelSupplierModifier and TypeMethodDescriptionstatic BinaryChannelSupplierBinaryChannelSupplier.of(ChannelSupplier<io.activej.bytebuf.ByteBuf> input) default io.activej.promise.Promise<Void>BinaryChannelInput.set(ChannelSupplier<io.activej.bytebuf.ByteBuf> input) -
Uses of ChannelSupplier in io.activej.csp.dsl
Methods in io.activej.csp.dsl that return ChannelSupplierModifier and TypeMethodDescriptiondefault ChannelSupplier<O>WithChannelTransformer.transform(ChannelSupplier<I> supplier) Methods in io.activej.csp.dsl that return types with arguments of type ChannelSupplierModifier and TypeMethodDescriptionstatic <T> ChannelSupplierTransformer<T,ChannelSupplier<T>> ChannelSupplierTransformer.identity()Methods in io.activej.csp.dsl with parameters of type ChannelSupplierModifier and TypeMethodDescriptionChannelSupplierTransformer.transform(ChannelSupplier<T> supplier) default ChannelSupplier<O>WithChannelTransformer.transform(ChannelSupplier<I> supplier) default BWithChannelInput.withInput(ChannelSupplier<T> input) -
Uses of ChannelSupplier in io.activej.csp.file
Classes in io.activej.csp.file that implement ChannelSupplierModifier and TypeClassDescriptionfinal classThis supplier allows you to asynchronously read binary data from a file. -
Uses of ChannelSupplier in io.activej.csp.net
Methods in io.activej.csp.net that return ChannelSupplierModifier and TypeMethodDescriptionChannelSupplier<io.activej.bytebuf.ByteBuf>Messaging.receiveBinaryStream()ChannelSupplier<io.activej.bytebuf.ByteBuf>MessagingWithBinaryStreaming.receiveBinaryStream() -
Uses of ChannelSupplier in io.activej.csp.process
Fields in io.activej.csp.process declared as ChannelSupplierMethods in io.activej.csp.process that return ChannelSupplierModifier and TypeMethodDescriptionprotected final <T> ChannelSupplier<T>AbstractCommunicatingProcess.sanitize(ChannelSupplier<T> supplier) Methods in io.activej.csp.process with parameters of type ChannelSupplierModifier and TypeMethodDescriptionstatic <T> ChannelSplitter<T>ChannelSplitter.create(ChannelSupplier<T> input) protected final <T> ChannelSupplier<T>AbstractCommunicatingProcess.sanitize(ChannelSupplier<T> supplier) -
Uses of ChannelSupplier in io.activej.csp.queue
Methods in io.activej.csp.queue that return ChannelSupplierModifier and TypeMethodDescriptiondefault ChannelSupplier<T>ChannelQueue.getSupplier()default ChannelSupplier<T>ChannelQueue.transform(ChannelSupplier<T> supplier) Methods in io.activej.csp.queue with parameters of type ChannelSupplierModifier and TypeMethodDescriptiondefault ChannelSupplier<T>ChannelQueue.transform(ChannelSupplier<T> supplier)