Uses of Interface
io.activej.csp.consumer.ChannelConsumer
Packages that use ChannelConsumer
Package
Description
-
Uses of ChannelConsumer in io.activej.csp
Methods in io.activej.csp that return ChannelConsumerModifier and TypeMethodDescriptiondefault ChannelConsumer<T>ChannelInput.getConsumer()default ChannelConsumer<T>ChannelInput.getConsumer(ChannelQueue<T> queue) Methods in io.activej.csp with parameters of type ChannelConsumer -
Uses of ChannelConsumer in io.activej.csp.binary
Methods in io.activej.csp.binary with parameters of type ChannelConsumerModifier and TypeMethodDescriptionstatic OutputStreamUtils.channelConsumerAsOutputStream(io.activej.reactor.Reactor reactor, ChannelConsumer<io.activej.bytebuf.ByteBuf> channelConsumer) Creates anOutputStreamout of a. -
Uses of ChannelConsumer in io.activej.csp.consumer
Classes in io.activej.csp.consumer that implement ChannelConsumerMethods in io.activej.csp.consumer 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 <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>ChannelConsumers.ofAnotherReactor(io.activej.reactor.Reactor anotherReactor, ChannelConsumer<T> anotherReactorConsumer) static <T> ChannelConsumer<T>ChannelConsumers.ofAsyncConsumer(io.activej.async.function.AsyncConsumer<T> consumer) WrapsAsyncConsumerinChannelConsumer.static <T> ChannelConsumer<T>ChannelConsumers.ofAsyncConsumer(io.activej.async.function.AsyncConsumer<T> consumer, @Nullable io.activej.async.process.AsyncCloseable closeable) WrapsAsyncConsumerinChannelConsumer.static <T> ChannelConsumer<T>ChannelConsumers.ofConsumer(io.activej.common.function.ConsumerEx<T> consumer) Wraps aConsumerExinChannelConsumer.static <T> ChannelConsumer<T>ChannelConsumers.ofConsumer(io.activej.common.function.ConsumerEx<T> consumer, @Nullable io.activej.async.process.AsyncCloseable closeable) static <T> ChannelConsumer<T>ChannelConsumers.ofException(Exception e) Creates a consumer which always returns aPromiseof exception when accepting values.static <T> ChannelConsumer<T>ChannelConsumers.ofLazyProvider(Supplier<? extends ChannelConsumer<T>> provider) Returns aChannelConsumerwrapped inSupplierand calls itsaccept()whenaccept()method is called.static ChannelConsumer<io.activej.bytebuf.ByteBuf>ChannelConsumers.ofOutputStream(Executor executor, OutputStream outputStream) Creates an asynchronousChannelConsumer<io.activej.bytebuf.ByteBuf>out of someOutputStream.static <T> ChannelConsumer<T>ChannelConsumers.ofPromise(io.activej.promise.Promise<? extends ChannelConsumer<T>> promise) UnwrapsChannelConsumerof providedPromise.static ChannelConsumer<io.activej.bytebuf.ByteBuf>ChannelConsumers.ofSocket(ITcpSocket socket) WrapsITcpSocket.write(ByteBuf)operation intoChannelConsumer.static <T> ChannelConsumer<T>ChannelConsumers.ofSupplier(io.activej.async.function.AsyncConsumer<ChannelSupplier<T>> supplierConsumer) static <T> ChannelConsumer<T>ChannelConsumers.ofSupplier(io.activej.async.function.AsyncConsumer<ChannelSupplier<T>> supplierConsumer, ChannelQueue<T> queue) 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 executor) Creates a wrapper ChannelConsumer which executes current ChannelConsumer'saccept(T value)within theexecutor.Methods in io.activej.csp.consumer with parameters of type ChannelConsumerModifier and TypeMethodDescriptionstatic <T> ChannelConsumer<T>ChannelConsumers.ofAnotherReactor(io.activej.reactor.Reactor anotherReactor, ChannelConsumer<T> anotherReactorConsumer) Method parameters in io.activej.csp.consumer with type arguments of type ChannelConsumerModifier and TypeMethodDescriptionstatic <T> ChannelConsumer<T>ChannelConsumers.ofLazyProvider(Supplier<? extends ChannelConsumer<T>> provider) Returns aChannelConsumerwrapped inSupplierand calls itsaccept()whenaccept()method is called.static <T> ChannelConsumer<T>ChannelConsumers.ofPromise(io.activej.promise.Promise<? extends ChannelConsumer<T>> promise) UnwrapsChannelConsumerof providedPromise. -
Uses of ChannelConsumer in io.activej.csp.consumer.impl
Classes in io.activej.csp.consumer.impl that implement ChannelConsumerModifier and TypeClassDescriptionfinal classfinal classfinal classOfConsumer<T>final classOfException<T>final classfinal classfinal classOfPromise<T>final classRecycling<T extends io.activej.common.recycle.Recyclable>Fields in io.activej.csp.consumer.impl declared as ChannelConsumerModifier and TypeFieldDescriptionfinal ChannelConsumer<T>OfAnotherReactor.anotherReactorConsumer@Nullable ChannelConsumer<T>OfLazyProvider.consumer@Nullable ChannelConsumer<T>OfPromise.consumerFields in io.activej.csp.consumer.impl with type parameters of type ChannelConsumerModifier and TypeFieldDescriptionfinal io.activej.promise.Promise<? extends ChannelConsumer<T>>OfPromise.promisefinal Supplier<? extends ChannelConsumer<T>>OfLazyProvider.providerConstructors in io.activej.csp.consumer.impl with parameters of type ChannelConsumerModifierConstructorDescriptionOfAnotherReactor(io.activej.reactor.Reactor anotherReactor, ChannelConsumer<T> anotherReactorConsumer) Constructor parameters in io.activej.csp.consumer.impl with type arguments of type ChannelConsumerModifierConstructorDescriptionOfLazyProvider(Supplier<? extends ChannelConsumer<T>> provider) OfPromise(io.activej.promise.Promise<? extends ChannelConsumer<T>> promise) -
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 with parameters of type ChannelConsumerModifier and TypeMethodDescriptiondefault 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>IMessaging.sendBinaryStream()ChannelConsumer<io.activej.bytebuf.ByteBuf>Messaging.sendBinaryStream() -
Uses of ChannelConsumer in io.activej.csp.process
Methods 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.process.transformer
Fields in io.activej.csp.process.transformer declared as ChannelConsumerMethods in io.activej.csp.process.transformer that return types with arguments of type ChannelConsumerModifier and TypeMethodDescriptionstatic <T> ChannelConsumerTransformer<T,ChannelConsumer<T>> ChannelConsumerTransformer.identity()Methods in io.activej.csp.process.transformer with parameters of type ChannelConsumerModifier and TypeMethodDescriptionChannelConsumerTransformer.transform(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) -
Uses of ChannelConsumer in io.activej.csp.supplier
Methods in io.activej.csp.supplier with parameters of type ChannelConsumerModifier and TypeMethodDescriptiondefault io.activej.promise.Promise<Void>ChannelSupplier.streamTo(ChannelConsumer<T> consumer) Streams data from thisChannelSupplierto theChannelConsumeruntilChannelSupplier.get()returns a promise ofnull.Method parameters in io.activej.csp.supplier with type arguments of type ChannelConsumerModifier and TypeMethodDescriptionstatic <T> ChannelSupplier<T>ChannelSuppliers.ofConsumer(Consumer<ChannelConsumer<T>> consumer, ChannelQueue<T> queue) Creates a ChannelSupplier received fromChannelQueue.default io.activej.promise.Promise<Void>ChannelSupplier.streamTo(io.activej.promise.Promise<? extends ChannelConsumer<T>> consumer)