Uses of Interface
io.activej.csp.ChannelConsumer
Packages that use ChannelConsumer
Package
Description
-
Uses of ChannelConsumer in io.activej.csp
Classes in io.activej.csp that implement ChannelConsumerModifier and TypeClassDescriptionclassfinal classRecyclingChannelConsumer<T extends io.activej.common.recycle.Recyclable>Methods in io.activej.csp that return ChannelConsumerModifier and TypeMethodDescriptiondefault ChannelConsumer<T>ChannelConsumer.async()default ChannelConsumer<T>Creates a wrapper ChannelConsumer - when itsaccept(T value)is called, current ChannelConsumer will accept the value only of it passesPredicatetest.default ChannelConsumer<T>ChannelInput.getConsumer()default ChannelConsumer<T>ChannelInput.getConsumer(ChannelQueue<T> queue) default <V> ChannelConsumer<V>Creates a wrapper ChannelConsumer - when itsaccept(T value)is called,fnwill be applied to the providedvaluefirst and the result of thefnwill be accepted by current ChannelConsumer.default <V> ChannelConsumer<V>Creates a wrapper ChannelConsumer - when itsaccept(T value)is called,fnwill be applied to the providedvaluefirst and the result of thefnwill be accepted by current ChannelConsumer asynchronously.static <T> ChannelConsumer<T>ChannelConsumer.of(@NotNull io.activej.async.function.AsyncConsumer<T> consumer) WrapsAsyncConsumerinChannelConsumer.static <T> ChannelConsumer<T>ChannelConsumer.of(@NotNull io.activej.async.function.AsyncConsumer<T> consumer, @Nullable io.activej.async.process.AsyncCloseable closeable) WrapsAsyncConsumerinChannelConsumer.static <T> ChannelConsumer<T>ChannelConsumer.ofAnotherEventloop(@NotNull io.activej.eventloop.Eventloop anotherEventloop, @NotNull ChannelConsumer<T> anotherEventloopConsumer) static <T> ChannelConsumer<T>ChannelConsumer.ofConsumer(@NotNull io.activej.common.function.ConsumerEx<T> consumer) Wraps aConsumerExinChannelConsumer.static <T> ChannelConsumer<T>ChannelConsumer.ofException(Exception e) Creates a consumer which always returns Promise of exception when accepts values.static <T> ChannelConsumer<T>ChannelConsumer.ofLazyProvider(Supplier<? extends ChannelConsumer<T>> provider) Returns aChannelConsumerwrapped inSupplierand calls itsaccept()whenaccept()method is called.static <T> ChannelConsumer<T>ChannelConsumer.ofPromise(io.activej.promise.Promise<? extends ChannelConsumer<T>> promise) UnwrapsChannelConsumerof providedPromise.static ChannelConsumer<io.activej.bytebuf.ByteBuf>ChannelConsumer.ofSocket(AsyncTcpSocket socket) WrapsAsyncTcpSocket.write(ByteBuf)operation intoChannelConsumer.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 ChannelConsumer<io.activej.bytebuf.ByteBuf>ChannelConsumers.outputStreamAsChannelConsumer(Executor executor, OutputStream outputStream) Creates an asynchronousChannelConsumer<io.activej.bytebuf.ByteBuf>out of someOutputStream.default ChannelConsumer<T>Creates a wrapper ChannelConsumer - when itsaccept(T value)is called, if providedvaluedoesn't equalnull, it will be accepted by the providedfnfirst and then by this ChannelConsumer.static <T extends io.activej.common.recycle.Recyclable>
ChannelConsumer<T>ChannelConsumers.recycling()default ChannelConsumer<T>ChannelConsumer.withAcknowledgement(UnaryOperator<io.activej.promise.Promise<Void>> fn) Creates a wrapper ChannelConsumer - after itsaccept(T value)is called and completed, an acknowledgement is returned.default ChannelConsumer<T>ChannelConsumer.withExecutor(io.activej.async.process.AsyncExecutor asyncExecutor) Creates a wrapper ChannelConsumer which executes current ChannelConsumer'saccept(T value)within theasyncExecutor.Methods in io.activej.csp with parameters of type ChannelConsumerModifier and TypeMethodDescriptionstatic <T> io.activej.promise.Promise<Void>ChannelConsumers.acceptAll(ChannelConsumer<T> output, Iterator<? extends T> it) Passes iterator's values to theoutputuntil ithasNext(), then returns a promise ofnullas a marker of completion.static <T> io.activej.promise.Promise<Void>ChannelConsumers.acceptAll(ChannelConsumer<T> output, List<? extends T> list) static OutputStreamChannelConsumers.channelConsumerAsOutputStream(io.activej.eventloop.Eventloop eventloop, ChannelConsumer<io.activej.bytebuf.ByteBuf> channelConsumer) Creates anOutputStreamout of aChannelConsumer<io.activej.bytebuf.ByteBuf>.static <T> ChannelConsumer<T>ChannelConsumer.ofAnotherEventloop(@NotNull io.activej.eventloop.Eventloop anotherEventloop, @NotNull ChannelConsumer<T> anotherEventloopConsumer) voidChannelOutput.set(ChannelConsumer<T> output) default io.activej.promise.Promise<Void>ChannelSupplier.streamTo(ChannelConsumer<T> consumer) 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 ChannelConsumerModifier and TypeMethodDescriptionstatic <T> ChannelSupplier<T>ChannelSupplier.ofConsumer(Consumer<ChannelConsumer<T>> consumer, ChannelQueue<T> queue) Returns a ChannelSupplier received fromChannelQueue.static <T> ChannelConsumer<T>ChannelConsumer.ofLazyProvider(Supplier<? extends ChannelConsumer<T>> provider) Returns aChannelConsumerwrapped inSupplierand calls itsaccept()whenaccept()method is called.static <T> ChannelConsumer<T>ChannelConsumer.ofPromise(io.activej.promise.Promise<? extends ChannelConsumer<T>> promise) UnwrapsChannelConsumerof providedPromise.default io.activej.promise.Promise<Void>ChannelSupplier.streamTo(io.activej.promise.Promise<? extends ChannelConsumer<T>> consumer) -
Uses of ChannelConsumer in io.activej.csp.dsl
Methods in io.activej.csp.dsl that return ChannelConsumerModifier and TypeMethodDescriptiondefault ChannelConsumer<I>WithChannelTransformer.transform(ChannelConsumer<O> consumer) Methods in io.activej.csp.dsl that return types with arguments of type ChannelConsumerModifier and TypeMethodDescriptionstatic <T> ChannelConsumerTransformer<T,ChannelConsumer<T>> ChannelConsumerTransformer.identity()Methods in io.activej.csp.dsl with parameters of type ChannelConsumerModifier and TypeMethodDescriptionChannelConsumerTransformer.transform(ChannelConsumer<T> consumer) default ChannelConsumer<I>WithChannelTransformer.transform(ChannelConsumer<O> consumer) default BWithChannelOutput.withOutput(ChannelConsumer<T> output) -
Uses of ChannelConsumer in io.activej.csp.file
Classes in io.activej.csp.file that implement ChannelConsumerModifier and TypeClassDescriptionfinal classThis consumer allows you to asynchronously write binary data to a file. -
Uses of ChannelConsumer in io.activej.csp.net
Methods in io.activej.csp.net that return ChannelConsumerModifier and TypeMethodDescriptionChannelConsumer<io.activej.bytebuf.ByteBuf>Messaging.sendBinaryStream()ChannelConsumer<io.activej.bytebuf.ByteBuf>MessagingWithBinaryStreaming.sendBinaryStream() -
Uses of ChannelConsumer in io.activej.csp.process
Fields in io.activej.csp.process declared as ChannelConsumerMethods in io.activej.csp.process that return ChannelConsumerModifier and TypeMethodDescriptionprotected final <T> ChannelConsumer<T>AbstractCommunicatingProcess.sanitize(ChannelConsumer<T> consumer) Methods in io.activej.csp.process with parameters of type ChannelConsumerModifier and TypeMethodDescriptionprotected final <T> ChannelConsumer<T>AbstractCommunicatingProcess.sanitize(ChannelConsumer<T> consumer) -
Uses of ChannelConsumer in io.activej.csp.queue
Methods in io.activej.csp.queue that return ChannelConsumerModifier and TypeMethodDescriptiondefault ChannelConsumer<T>ChannelQueue.getConsumer()Returns aChannelConsumerwhich puts value in this queue whenaccept(T value)is called.default ChannelConsumer<T>ChannelQueue.getConsumer(io.activej.promise.Promise<Void> acknowledgement) Returns aChannelConsumerwhich puts non-null value in this queue whenaccept(T value)is called.default ChannelConsumer<T>ChannelQueue.transform(ChannelConsumer<T> consumer) Methods in io.activej.csp.queue with parameters of type ChannelConsumerModifier and TypeMethodDescriptiondefault ChannelConsumer<T>ChannelQueue.transform(ChannelConsumer<T> consumer)