Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractChannelConsumer<T> - Class in io.activej.csp
- AbstractChannelConsumer() - Constructor for class io.activej.csp.AbstractChannelConsumer
- AbstractChannelConsumer(AsyncCloseable) - Constructor for class io.activej.csp.AbstractChannelConsumer
- AbstractChannelSupplier<T> - Class in io.activej.csp
- AbstractChannelSupplier() - Constructor for class io.activej.csp.AbstractChannelSupplier
- AbstractChannelSupplier(AsyncCloseable) - Constructor for class io.activej.csp.AbstractChannelSupplier
- AbstractChannelTransformer<S extends AbstractChannelTransformer<S,
I, O>, I, O> - Class in io.activej.csp.process - AbstractChannelTransformer() - Constructor for class io.activej.csp.process.AbstractChannelTransformer
- AbstractCommunicatingProcess - Class in io.activej.csp.process
-
An abstract AsyncProcess which describes interactions between ChannelSupplier and ChannelConsumer.
- AbstractCommunicatingProcess() - Constructor for class io.activej.csp.process.AbstractCommunicatingProcess
- accept(T) - Method in class io.activej.csp.AbstractChannelConsumer
- accept(T) - Method in interface io.activej.csp.ChannelConsumer
-
Consumes a provided value and returns a
Promiseas a marker of success. - acceptAll(Iterator<? extends T>) - Method in interface io.activej.csp.ChannelConsumer
- acceptAll(List<T>) - Method in interface io.activej.csp.ChannelConsumer
- acceptAll(ChannelConsumer<T>, Iterator<? extends T>) - Static method in class io.activej.csp.ChannelConsumers
-
Passes iterator's values to the
outputuntil ithasNext(), then returns a promise ofnullas a marker of completion. - acceptAll(ChannelConsumer<T>, List<? extends T>) - Static method in class io.activej.csp.ChannelConsumers
- acceptAll(T...) - Method in interface io.activej.csp.ChannelConsumer
-
Accepts provided items and returns
Promiseas a marker of completion. - acceptEndOfStream() - Method in interface io.activej.csp.ChannelConsumer
- add(T) - Method in class io.activej.csp.queue.ChannelBuffer
-
Adds provided item to the buffer and resets current
take. - addInput() - Method in interface io.activej.csp.dsl.WithChannelInputs
- addOutput() - Method in interface io.activej.csp.dsl.WithChannelOutputs
- addOutput() - Method in class io.activej.csp.process.ChannelSplitter
- afterProcess(Exception) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- andThen(DecoderFunction<? super I, ? extends I1>, Function<? super O1, ? extends O>) - Method in interface io.activej.csp.binary.ByteBufsCodec
- andThen(DecoderFunction<? super T, ? extends V>) - Method in interface io.activej.csp.binary.ByteBufsDecoder
- assertBytes(byte[]) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- async() - Method in interface io.activej.csp.ChannelConsumer
- async() - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier and makes its promise complete asynchronously.
B
- beforeProcess() - Method in class io.activej.csp.process.AbstractChannelTransformer
- beforeProcess() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- beforeProcess() - Method in class io.activej.csp.process.ChannelSplitter
- BinaryChannelInput - Interface in io.activej.csp.binary
- BinaryChannelSupplier - Class in io.activej.csp.binary
- BinaryChannelSupplier() - Constructor for class io.activej.csp.binary.BinaryChannelSupplier
- BinaryChannelSupplier(ByteBufs) - Constructor for class io.activej.csp.binary.BinaryChannelSupplier
- bindTo(BinaryChannelInput) - Method in class io.activej.csp.binary.BinaryChannelSupplier
- bindTo(ChannelInput<T>) - Method in interface io.activej.csp.ChannelOutput
- bindTo(ChannelInput<T>) - Method in interface io.activej.csp.ChannelSupplier
-
Binds this ChannelSupplier to provided
ChannelInput - bindTo(ChannelInput<T>, ChannelQueue<T>) - Method in interface io.activej.csp.ChannelOutput
- BlockDecoder - Interface in io.activej.csp.process.frames
-
Defines methods to decode data encoded using as blocks
- BlockEncoder - Interface in io.activej.csp.process.frames
-
Defines methods to encode incoming data into Data Blocks
- bufs - Variable in class io.activej.csp.binary.BinaryChannelSupplier
- ByteBufsCodec<I,
O> - Interface in io.activej.csp.binary - ByteBufsDecoder<T> - Interface in io.activej.csp.binary
C
- ChannelBuffer<T> - Class in io.activej.csp.queue
-
Represents a queue of elements which you can
putandtake. - ChannelBuffer(int) - Constructor for class io.activej.csp.queue.ChannelBuffer
- ChannelBuffer(int, int) - Constructor for class io.activej.csp.queue.ChannelBuffer
-
Creates a ChannelBuffer with the buffer size of the next highest power of 2 (for example, if
bufferMinxSize = 113, a buffer of 128 elements will be created). - ChannelBufferWithFallback<T> - Class in io.activej.csp.queue
- ChannelBufferWithFallback(ChannelQueue<T>, Supplier<Promise<? extends ChannelQueue<T>>>) - Constructor for class io.activej.csp.queue.ChannelBufferWithFallback
- ChannelByteChunker - Class in io.activej.csp.process
- ChannelByteRanger - Class in io.activej.csp.process
-
Drops exactly N bytes from a csp stream of byte buffers and limits that stream to exactly M bytes in length
- ChannelConsumer<T> - Interface in io.activej.csp
-
This interface represents consumer of data items that should be used serially (each consecutive
ChannelConsumer.accept(Object)operation should be called only after previousChannelConsumer.accept(Object)operation finishes) - channelConsumerAsOutputStream(Eventloop, ChannelConsumer<ByteBuf>) - Static method in class io.activej.csp.ChannelConsumers
-
Creates an
OutputStreamout of aChannelConsumer<io.activej.bytebuf.ByteBuf>. - ChannelConsumers - Class in io.activej.csp
-
Provides additional functionality for managing
ChannelConsumers. - ChannelConsumers() - Constructor for class io.activej.csp.ChannelConsumers
- ChannelConsumerTransformer<T,
R> - Interface in io.activej.csp.dsl - ChannelFileBuffer - Class in io.activej.csp.queue
- ChannelFileReader - Class in io.activej.csp.file
-
This supplier allows you to asynchronously read binary data from a file.
- ChannelFileWriter - Class in io.activej.csp.file
-
This consumer allows you to asynchronously write binary data to a file.
- ChannelFrameDecoder - Class in io.activej.csp.process.frames
- ChannelFrameEncoder - Class in io.activej.csp.process.frames
- ChannelInput<T> - Interface in io.activej.csp
- ChannelOutput<T> - Interface in io.activej.csp
- ChannelQueue<T> - Interface in io.activej.csp.queue
-
Represents a queue of elements, which you can
putortaketo pass fromChannelConsumertoChannelSupplier. - ChannelSplitter<T> - Class in io.activej.csp.process
- ChannelSupplier<T> - Interface in io.activej.csp
-
This interface represents supplier of
Promiseof data that should be used serially (each consecutiveChannelSupplier.get()) operation should be called only after previousChannelSupplier.get()operation finishes. - channelSupplierAsInputStream(Eventloop, ChannelSupplier<ByteBuf>) - Static method in class io.activej.csp.ChannelSuppliers
-
Creates an
InputStreamout of aChannelSupplier<io.activej.bytebuf.ByteBuf>. - ChannelSupplierConcat(Iterator<? extends ChannelSupplier<? extends T>>, boolean) - Constructor for class io.activej.csp.ChannelSuppliers.ChannelSupplierConcat
- ChannelSupplierEmpty() - Constructor for class io.activej.csp.ChannelSuppliers.ChannelSupplierEmpty
- ChannelSupplierOfException(Exception) - Constructor for class io.activej.csp.ChannelSuppliers.ChannelSupplierOfException
- ChannelSupplierOfIterator(Iterator<? extends T>, boolean) - Constructor for class io.activej.csp.ChannelSuppliers.ChannelSupplierOfIterator
- ChannelSupplierOfValue(T) - Constructor for class io.activej.csp.ChannelSuppliers.ChannelSupplierOfValue
- ChannelSuppliers - Class in io.activej.csp
-
Provides additional functionality for managing
ChannelSuppliers. - ChannelSuppliers() - Constructor for class io.activej.csp.ChannelSuppliers
- ChannelSuppliers.ChannelSupplierConcat<T> - Class in io.activej.csp
- ChannelSuppliers.ChannelSupplierEmpty<T> - Class in io.activej.csp
-
Represents a
ChannelSupplierwhich always returns a promise ofnull. - ChannelSuppliers.ChannelSupplierOfException<T> - Class in io.activej.csp
-
Represents a
ChannelSupplierwhich always returns a promise of exception. - ChannelSuppliers.ChannelSupplierOfIterator<T> - Class in io.activej.csp
-
Represents a
ChannelSupplierwhich 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. - ChannelSuppliers.ChannelSupplierOfValue<T> - Class in io.activej.csp
-
Represents a
ChannelSupplierof one value. - ChannelSupplierTransformer<T,
R> - Interface in io.activej.csp.dsl - ChannelTransformer<I,
O> - Interface in io.activej.csp.dsl - ChannelZeroBuffer<T> - Class in io.activej.csp.queue
-
Represents a buffer of zero capacity and stores only one value.
- ChannelZeroBuffer() - Constructor for class io.activej.csp.queue.ChannelZeroBuffer
- CHECK - Static variable in class io.activej.csp.AbstractChannelConsumer
- CHECK - Static variable in class io.activej.csp.AbstractChannelSupplier
- close() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
-
Closes this process with
AsyncCloseException - closeEx(Exception) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
-
Closes this process if it is not completed yet.
- closeEx(Exception) - Method in class io.activej.csp.queue.ChannelBuffer
-
Closes the buffer if this
exceptionis notnull. - closeEx(Exception) - Method in class io.activej.csp.queue.ChannelBufferWithFallback
- closeEx(Exception) - Method in class io.activej.csp.queue.ChannelFileBuffer
- closeEx(Exception) - Method in class io.activej.csp.queue.ChannelZeroBuffer
-
Closes the buffer if this
exceptionis notnull. - collect(ChannelSupplier<T>, A, BiConsumerEx<A, T>, FunctionEx<A, R>) - Static method in class io.activej.csp.ChannelSuppliers
-
Collects data provided by the
supplierasynchronously and returns a promise of accumulated result. - completeProcess() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- completeProcessEx(Exception) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- compound(FrameFormat, FrameFormat...) - Static method in class io.activej.csp.process.frames.FrameFormats
-
A combination of different frame formats.
- concat(ChannelSupplier<? extends T>...) - Static method in class io.activej.csp.ChannelSuppliers
- concat(ChannelSupplier<? extends T>, ChannelSupplier<? extends T>) - Static method in class io.activej.csp.ChannelSuppliers
- concat(Iterator<? extends ChannelSupplier<? extends T>>) - Static method in class io.activej.csp.ChannelSuppliers
-
Creates a new ChannelSupplier which on
get()call returns the result wrapped inpromiseof the first ChannelSuppliers'promisethat was successfully completed with a non-null result. - concat(List<ChannelSupplier<? extends T>>) - Static method in class io.activej.csp.ChannelSuppliers
- create() - Static method in class io.activej.csp.process.ChannelSplitter
- create() - Static method in class io.activej.csp.process.frames.LZ4FrameFormat
- create() - Static method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
- create(BlockDecoder) - Static method in class io.activej.csp.process.frames.ChannelFrameDecoder
- create(BlockEncoder) - Static method in class io.activej.csp.process.frames.ChannelFrameEncoder
- create(FrameFormat) - Static method in class io.activej.csp.process.frames.ChannelFrameDecoder
- create(FrameFormat) - Static method in class io.activej.csp.process.frames.ChannelFrameEncoder
- create(AsyncFileService, FileChannel) - Static method in class io.activej.csp.file.ChannelFileReader
- create(AsyncFileService, FileChannel) - Static method in class io.activej.csp.file.ChannelFileWriter
- create(MemSize, MemSize) - Static method in class io.activej.csp.process.ChannelByteChunker
- create(ChannelSupplier<T>) - Static method in class io.activej.csp.process.ChannelSplitter
- create(AsyncTcpSocket, ByteBufsCodec<I, O>) - Static method in class io.activej.csp.net.MessagingWithBinaryStreaming
- create(Executor, FileChannel) - Static method in class io.activej.csp.file.ChannelFileReader
- create(Executor, FileChannel) - Static method in class io.activej.csp.file.ChannelFileWriter
- create(Executor, Path) - Static method in class io.activej.csp.queue.ChannelFileBuffer
- create(Executor, Path, MemSize) - Static method in class io.activej.csp.queue.ChannelFileBuffer
- create(LZ4Factory) - Static method in class io.activej.csp.process.frames.LZ4FrameFormat
- create(LZ4Factory, XXHashFactory) - Static method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
- createDecoder() - Method in interface io.activej.csp.process.frames.FrameFormat
-
Creates a decoder which decodes data encoded by
BlockEncoder - createDecoder() - Method in class io.activej.csp.process.frames.LZ4FrameFormat
- createDecoder() - Method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
- createEncoder() - Method in interface io.activej.csp.process.frames.FrameFormat
-
Creates an encoder which transforms input bufs into bufs of encoded data
- createEncoder() - Method in class io.activej.csp.process.frames.LZ4FrameFormat
- createEncoder() - Method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
D
- decode(ByteBufs) - Method in interface io.activej.csp.process.frames.BlockDecoder
-
Attempts to decode data blocks contained in a
ByteBufs. - decode(ByteBufsDecoder<T>) - Method in class io.activej.csp.binary.BinaryChannelSupplier
- decode(T) - Method in interface io.activej.csp.binary.DecoderFunction
- decodeElse(T, R) - Method in interface io.activej.csp.binary.DecoderFunction
- decodeRemaining(ByteBufsDecoder<T>) - Method in class io.activej.csp.binary.BinaryChannelSupplier
- DecoderFunction<T,
R> - Interface in io.activej.csp.binary - decodeStream(ByteBufsDecoder<T>) - Method in class io.activej.csp.binary.BinaryChannelSupplier
- DEFAULT_BUFFER_SIZE - Static variable in class io.activej.csp.file.ChannelFileReader
- doAccept(ByteBuf) - Method in class io.activej.csp.file.ChannelFileWriter
- doAccept(T) - Method in class io.activej.csp.AbstractChannelConsumer
- doAccept(T) - Method in class io.activej.csp.RecyclingChannelConsumer
- doClose(Exception) - Method in class io.activej.csp.process.AbstractChannelTransformer
- doClose(Exception) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
-
An operation which is executed in case of manual closing.
- doClose(Exception) - Method in class io.activej.csp.process.ChannelSplitter
- doClose(Exception) - Method in class io.activej.csp.process.frames.ChannelFrameDecoder
- doClose(Exception) - Method in class io.activej.csp.process.frames.ChannelFrameEncoder
- doGet() - Method in class io.activej.csp.AbstractChannelSupplier
- doGet() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierConcat
- doGet() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierEmpty
- doGet() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierOfException
- doGet() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierOfIterator
- doGet() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierOfValue
- doGet() - Method in class io.activej.csp.file.ChannelFileReader
- doProcess() - Method in class io.activej.csp.process.AbstractChannelTransformer
- doProcess() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
-
Describes the main operations of the communicating process.
- doProcess() - Method in class io.activej.csp.process.ChannelSplitter
- doProcess() - Method in class io.activej.csp.process.frames.ChannelFrameDecoder
- doProcess() - Method in class io.activej.csp.process.frames.ChannelFrameEncoder
- doSanitize(T, Exception) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
-
Closes this process and returns a promise of
eexception if providedeis notnull. - doTake() - Method in class io.activej.csp.queue.ChannelBufferWithFallback
- drop(long) - Static method in class io.activej.csp.process.ChannelByteRanger
E
- encode(ByteBuf) - Method in interface io.activej.csp.process.frames.BlockEncoder
-
Encodes input
ByteBufas a Data Block. - encode(O) - Method in interface io.activej.csp.binary.ByteBufsCodec
- encodeEndOfStreamBlock() - Method in interface io.activej.csp.process.frames.BlockEncoder
-
Encodes an End-Of-Stream Block which indicates an end of stream.
- END_OF_STREAM - Static variable in interface io.activej.csp.process.frames.BlockDecoder
-
A 'sentinel' value that indicates end of stream.
- endOfStream() - Method in class io.activej.csp.binary.BinaryChannelSupplier
F
- fillInStackTrace() - Method in exception io.activej.csp.process.ProcessCompleteException
- filter(Predicate<? super T>) - Method in interface io.activej.csp.ChannelConsumer
-
Creates a wrapper ChannelConsumer - when its
accept(T value)is called, current ChannelConsumer will accept the value only of it passesPredicatetest. - filter(Predicate<? super T>) - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier and checks if its Promise's value(s) match(es) the predicate, leaving only those value(s) which pass the test. - FrameFormat - Interface in io.activej.csp.process.frames
-
This interface specifies data encoding format which utilizes block structure.
- FrameFormats - Class in io.activej.csp.process.frames
- FrameFormats() - Constructor for class io.activej.csp.process.frames.FrameFormats
G
- get() - Method in class io.activej.csp.AbstractChannelSupplier
- get() - Method in interface io.activej.csp.ChannelSupplier
- getBufs() - Method in class io.activej.csp.binary.BinaryChannelSupplier
- getConsumer() - Method in interface io.activej.csp.ChannelInput
- getConsumer() - Method in interface io.activej.csp.queue.ChannelQueue
-
Returns a
ChannelConsumerwhich puts value in this queue whenaccept(T value)is called. - getConsumer(ChannelQueue<T>) - Method in interface io.activej.csp.ChannelInput
- getConsumer(Promise<Void>) - Method in interface io.activej.csp.queue.ChannelQueue
-
Returns a
ChannelConsumerwhich puts non-null value in this queue whenaccept(T value)is called. - getException() - Method in class io.activej.csp.queue.ChannelBuffer
- getException() - Method in class io.activej.csp.queue.ChannelBufferWithFallback
- getException() - Method in class io.activej.csp.queue.ChannelFileBuffer
- getException() - Method in class io.activej.csp.queue.ChannelZeroBuffer
- getInput() - Method in interface io.activej.csp.dsl.HasBinaryChannelInput
- getInput() - Method in interface io.activej.csp.dsl.HasChannelInput
- getInput() - Method in class io.activej.csp.process.AbstractChannelTransformer
- getInput() - Method in class io.activej.csp.process.ChannelSplitter
- getInput() - Method in class io.activej.csp.process.frames.ChannelFrameDecoder
- getInput() - Method in class io.activej.csp.process.frames.ChannelFrameEncoder
- getOutput() - Method in interface io.activej.csp.dsl.HasChannelOutput
- getOutput() - Method in class io.activej.csp.process.AbstractChannelTransformer
- getOutput() - Method in class io.activej.csp.process.frames.ChannelFrameDecoder
- getOutput() - Method in class io.activej.csp.process.frames.ChannelFrameEncoder
- getPosition() - Method in class io.activej.csp.file.ChannelFileReader
- getPosition() - Method in class io.activej.csp.file.ChannelFileWriter
- getProcessCompletion() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- getSupplier() - Method in interface io.activej.csp.ChannelOutput
- getSupplier() - Method in interface io.activej.csp.queue.ChannelQueue
- getSupplier(ChannelQueue<T>) - Method in interface io.activej.csp.ChannelOutput
- getValue() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierOfValue
H
- HasBinaryChannelInput - Interface in io.activej.csp.dsl
- HasChannelInput<T> - Interface in io.activej.csp.dsl
- HasChannelOutput<T> - Interface in io.activej.csp.dsl
- hasOutputs() - Method in class io.activej.csp.process.ChannelSplitter
I
- identity() - Static method in interface io.activej.csp.dsl.ChannelConsumerTransformer
- identity() - Static method in interface io.activej.csp.dsl.ChannelSupplierTransformer
- identity() - Static method in interface io.activej.csp.dsl.ChannelTransformer
- identity() - Static method in class io.activej.csp.process.frames.FrameFormats
-
A frame format that does not change incoming data in any way.
- ignoreMissingEndOfStreamBlock() - Method in interface io.activej.csp.process.frames.BlockDecoder
-
Whether this decoder allows stream to end without End-Of-Stream Block.
- input - Variable in class io.activej.csp.process.AbstractChannelTransformer
- inputStreamAsChannelSupplier(Executor, int, InputStream) - Static method in class io.activej.csp.ChannelSuppliers
-
Creates an asynchronous
ChannelSupplier<io.activej.bytebuf.ByteBuf>out of someInputStream. - inputStreamAsChannelSupplier(Executor, MemSize, InputStream) - Static method in class io.activej.csp.ChannelSuppliers
- inputStreamAsChannelSupplier(Executor, InputStream) - Static method in class io.activej.csp.ChannelSuppliers
-
Creates an asynchronous
ChannelSupplierout of someInputStream. - io.activej.csp - package io.activej.csp
- io.activej.csp.binary - package io.activej.csp.binary
- io.activej.csp.dsl - package io.activej.csp.dsl
- io.activej.csp.file - package io.activej.csp.file
- io.activej.csp.net - package io.activej.csp.net
- io.activej.csp.process - package io.activej.csp.process
- io.activej.csp.process.frames - package io.activej.csp.process.frames
- io.activej.csp.queue - package io.activej.csp.queue
- isEmpty() - Method in class io.activej.csp.queue.ChannelBuffer
-
Checks if this buffer contains elements.
- isExhausted() - Method in class io.activej.csp.queue.ChannelBuffer
-
Checks if this buffer has fewer elements than
bufferMinSize. - isExhausted() - Method in class io.activej.csp.queue.ChannelBufferWithFallback
- isExhausted() - Method in class io.activej.csp.queue.ChannelFileBuffer
- isExhausted() - Method in interface io.activej.csp.queue.ChannelQueue
- isExhausted() - Method in class io.activej.csp.queue.ChannelZeroBuffer
- isProcessComplete() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- isProcessStarted() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- isSaturated() - Method in class io.activej.csp.queue.ChannelBuffer
-
Checks if this buffer is saturated by comparing its current size with
bufferMaxSize. - isSaturated() - Method in class io.activej.csp.queue.ChannelBufferWithFallback
- isSaturated() - Method in class io.activej.csp.queue.ChannelFileBuffer
- isSaturated() - Method in interface io.activej.csp.queue.ChannelQueue
- isSaturated() - Method in class io.activej.csp.queue.ChannelZeroBuffer
L
- lenient() - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier. - limit(long) - Static method in class io.activej.csp.process.ChannelByteRanger
- LZ4FrameFormat - Class in io.activej.csp.process.frames
- LZ4LegacyFrameFormat - Class in io.activej.csp.process.frames
-
Deprecated.
M
- map(FunctionEx<? super T, ? extends V>) - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier and when its Promise completes, applies providedfnto the result. - map(FunctionEx<? super V, ? extends T>) - Method in interface io.activej.csp.ChannelConsumer
-
Creates a wrapper ChannelConsumer - when its
accept(T value)is called,fnwill be applied to the providedvaluefirst and the result of thefnwill be accepted by current ChannelConsumer. - mapAsync(Function<? super T, Promise<V>>) - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier and applies providedfnto its Promise asynchronously. - mapAsync(Function<? super V, Promise<T>>) - Method in interface io.activej.csp.ChannelConsumer
-
Creates a wrapper ChannelConsumer - when its
accept(T value)is called,fnwill be applied to the providedvaluefirst and the result of thefnwill be accepted by current ChannelConsumer asynchronously. - MAX_BLOCK_SIZE - Static variable in class io.activej.csp.process.frames.LZ4FrameFormat
- Messaging<I,
O> - Interface in io.activej.csp.net - MessagingWithBinaryStreaming<I,
O> - Class in io.activej.csp.net -
Represents a simple binary protocol over for communication a TCP connection.
- MissingEndOfStreamBlockException - Exception in io.activej.csp.process.frames
-
Exception indicates a stream that either is empty or ends with a complete Data Block (with no trailing data), missing End-Of-Stream Block
- MissingEndOfStreamBlockException(Throwable) - Constructor for exception io.activej.csp.process.frames.MissingEndOfStreamBlockException
N
- needMoreData() - Method in class io.activej.csp.binary.BinaryChannelSupplier
- nullTerminated() - Static method in class io.activej.csp.binary.Utils
O
- of() - Static method in interface io.activej.csp.ChannelSupplier
-
Returns a
ChannelSuppliers.ChannelSupplierEmpty. - of(AsyncConsumer<T>) - Static method in interface io.activej.csp.ChannelConsumer
-
Wraps
AsyncConsumerinChannelConsumer. - of(AsyncConsumer<T>, AsyncCloseable) - Static method in interface io.activej.csp.ChannelConsumer
-
Wraps
AsyncConsumerinChannelConsumer. - of(AsyncSupplier<T>) - Static method in interface io.activej.csp.ChannelSupplier
- of(AsyncSupplier<T>, AsyncCloseable) - Static method in interface io.activej.csp.ChannelSupplier
-
Wraps
AsyncSupplierin ChannelSupplier, whenget()is called,AsyncSupplier'sget()will be executed. - of(ChannelSupplier<ByteBuf>) - Static method in class io.activej.csp.binary.BinaryChannelSupplier
- of(T) - Static method in interface io.activej.csp.ChannelSupplier
-
Wraps provided
valueto aChannelSuppliers.ChannelSupplierOfValue. - of(T...) - Static method in interface io.activej.csp.ChannelSupplier
- ofAnotherEventloop(Eventloop, ChannelConsumer<T>) - Static method in interface io.activej.csp.ChannelConsumer
- ofAnotherEventloop(Eventloop, ChannelSupplier<T>) - Static method in interface io.activej.csp.ChannelSupplier
- ofByteSizePrefixedBytes() - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofByteSizePrefixedBytes(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofConsumer(ConsumerEx<T>) - Static method in interface io.activej.csp.ChannelConsumer
-
Wraps a
ConsumerExinChannelConsumer. - ofConsumer(Consumer<ChannelConsumer<T>>, ChannelQueue<T>) - Static method in interface io.activej.csp.ChannelSupplier
-
Returns a ChannelSupplier received from
ChannelQueue. - ofCrlfTerminatedBytes() - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofCrlfTerminatedBytes(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofCrTerminatedBytes() - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofCrTerminatedBytes(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofDelimiter(ByteBufsDecoder<ByteBuf>, UnaryOperator<ByteBuf>) - Static method in interface io.activej.csp.binary.ByteBufsCodec
- ofException(Exception) - Static method in interface io.activej.csp.ChannelConsumer
-
Creates a consumer which always returns Promise of exception when accepts values.
- ofException(Exception) - Static method in interface io.activej.csp.ChannelSupplier
-
Returns a
ChannelSuppliers.ChannelSupplierOfExceptionof provided exception. - ofFixedSize(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofIntSizePrefixedBytes() - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofIntSizePrefixedBytes(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofIterator(Iterator<? extends T>) - Static method in interface io.activej.csp.ChannelSupplier
-
Wraps provided
IteratorintoChannelSuppliers.ChannelSupplierOfIterator. - ofIterator(Iterator<ByteBuf>) - Static method in class io.activej.csp.binary.BinaryChannelSupplier
- ofLazyProvider(Supplier<? extends ChannelConsumer<T>>) - Static method in interface io.activej.csp.ChannelConsumer
-
Returns a
ChannelConsumerwrapped inSupplierand calls itsaccept()whenaccept()method is called. - ofLazyProvider(Supplier<? extends ChannelSupplier<T>>) - Static method in interface io.activej.csp.ChannelSupplier
- ofList(List<? extends T>) - Static method in interface io.activej.csp.ChannelSupplier
- ofList(List<ByteBuf>) - Static method in class io.activej.csp.binary.BinaryChannelSupplier
- ofNullTerminatedBytes() - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofNullTerminatedBytes(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofPromise(Promise<? extends ChannelConsumer<T>>) - Static method in interface io.activej.csp.ChannelConsumer
-
Unwraps
ChannelConsumerof providedPromise. - ofPromise(Promise<? extends ChannelSupplier<T>>) - Static method in interface io.activej.csp.ChannelSupplier
-
Wraps
promiseof ChannelSupplier in ChannelSupplier or returns the ChannelSupplier frompromiseitself. - ofProvidedBufs(ByteBufs, AsyncRunnable, AsyncRunnable, AsyncCloseable) - Static method in class io.activej.csp.binary.BinaryChannelSupplier
- ofShortSizePrefixedBytes() - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofShortSizePrefixedBytes(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofSocket(AsyncTcpSocket) - Static method in interface io.activej.csp.ChannelConsumer
-
Wraps
AsyncTcpSocket.write(ByteBuf)operation intoChannelConsumer. - ofSocket(AsyncTcpSocket) - Static method in interface io.activej.csp.ChannelSupplier
-
Wraps
AsyncTcpSocket.read()operation intoChannelSupplier - ofStream(Stream<? extends T>) - Static method in interface io.activej.csp.ChannelSupplier
- ofSupplier(AsyncConsumer<ChannelSupplier<T>>) - Static method in interface io.activej.csp.ChannelConsumer
- ofSupplier(AsyncConsumer<ChannelSupplier<T>>, ChannelQueue<T>) - Static method in interface io.activej.csp.ChannelConsumer
- ofSupplier(Supplier<Promise<T>>) - Static method in interface io.activej.csp.ChannelSupplier
-
Wraps provided default
Supplierto ChannelSupplier. - ofVarIntSizePrefixedBytes() - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- ofVarIntSizePrefixedBytes(int) - Static method in interface io.activej.csp.binary.ByteBufsDecoder
- onCleanup() - Method in class io.activej.csp.binary.BinaryChannelSupplier
- onCleanup() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierOfIterator
- onCleanup() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierOfValue
- onCleanup() - Method in class io.activej.csp.process.AbstractChannelTransformer
- onCleanup() - Method in class io.activej.csp.process.ChannelByteChunker
- onClosed(Exception) - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierConcat
- onClosed(Exception) - Method in class io.activej.csp.file.ChannelFileReader
- onClosed(Exception) - Method in class io.activej.csp.file.ChannelFileWriter
- onClosed(Exception) - Method in class io.activej.csp.net.MessagingWithBinaryStreaming
- onItem(I) - Method in class io.activej.csp.process.AbstractChannelTransformer
- onItem(ByteBuf) - Method in class io.activej.csp.process.ChannelByteChunker
- onItem(ByteBuf) - Method in class io.activej.csp.process.ChannelByteRanger
- onProcessFinish() - Method in class io.activej.csp.process.AbstractChannelTransformer
- onProcessFinish() - Method in class io.activej.csp.process.ChannelByteChunker
- onProcessStart() - Method in class io.activej.csp.process.AbstractChannelTransformer
- open(Executor, Path) - Static method in class io.activej.csp.file.ChannelFileReader
- open(Executor, Path) - Static method in class io.activej.csp.file.ChannelFileWriter
- open(Executor, Path, OpenOption...) - Static method in class io.activej.csp.file.ChannelFileReader
- open(Executor, Path, OpenOption...) - Static method in class io.activej.csp.file.ChannelFileWriter
- openBlocking(Executor, Path) - Static method in class io.activej.csp.file.ChannelFileReader
- openBlocking(Executor, Path) - Static method in class io.activej.csp.file.ChannelFileWriter
- openBlocking(Executor, Path, OpenOption...) - Static method in class io.activej.csp.file.ChannelFileReader
- openBlocking(Executor, Path, OpenOption...) - Static method in class io.activej.csp.file.ChannelFileWriter
- output - Variable in class io.activej.csp.process.AbstractChannelTransformer
- outputStreamAsChannelConsumer(Executor, OutputStream) - Static method in class io.activej.csp.ChannelConsumers
-
Creates an asynchronous
ChannelConsumer<io.activej.bytebuf.ByteBuf>out of someOutputStream.
P
- peek(Consumer<? super T>) - Method in interface io.activej.csp.ChannelConsumer
-
Creates a wrapper ChannelConsumer - when its
accept(T value)is called, if providedvaluedoesn't equalnull, it will be accepted by the providedfnfirst and then by this ChannelConsumer. - peek(Consumer<? super T>) - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier and when its Promise completes successfully, the result is accepted by the providedfn. - poll() - Method in class io.activej.csp.queue.ChannelBuffer
-
Returns the head of the buffer if it is not empty, otherwise returns
null. - prefetch(int, ChannelSupplier<T>) - Static method in class io.activej.csp.ChannelSuppliers
- prefetch(ChannelSupplier<T>) - Static method in class io.activej.csp.ChannelSuppliers
- ProcessCompleteException - Exception in io.activej.csp.process
- ProcessCompleteException() - Constructor for exception io.activej.csp.process.ProcessCompleteException
- put(ByteBuf) - Method in class io.activej.csp.queue.ChannelFileBuffer
- put(T) - Method in class io.activej.csp.queue.ChannelBuffer
-
Puts
valuein this buffer and increasestailvalue. - put(T) - Method in class io.activej.csp.queue.ChannelBufferWithFallback
- put(T) - Method in interface io.activej.csp.queue.ChannelQueue
-
Puts an item in the queue and returns a
promiseofnullas a marker of completion. - put(T) - Method in class io.activej.csp.queue.ChannelZeroBuffer
-
Sets the provided
valueto currentvalue, then setsputas a newSettablePromiseand returns it.
R
- range(long, long) - Static method in class io.activej.csp.process.ChannelByteRanger
- receive() - Method in interface io.activej.csp.net.Messaging
- receive() - Method in class io.activej.csp.net.MessagingWithBinaryStreaming
- receiveBinaryStream() - Method in interface io.activej.csp.net.Messaging
- receiveBinaryStream() - Method in class io.activej.csp.net.MessagingWithBinaryStreaming
- recycling() - Static method in class io.activej.csp.ChannelConsumers
- RecyclingChannelConsumer<T extends io.activej.common.recycle.Recyclable> - Class in io.activej.csp
- RecyclingChannelConsumer() - Constructor for class io.activej.csp.RecyclingChannelConsumer
- remap(ChannelSupplier<T>, Function<? super T, ? extends Iterator<? extends V>>) - Static method in class io.activej.csp.ChannelSuppliers
-
Transforms this
ChannelSupplierdata oftype with provided fn, which returns anIteratorof atype. - reset() - Method in interface io.activej.csp.process.frames.BlockDecoder
-
Attempts to reset some internal state of decoder.
- reset() - Method in interface io.activej.csp.process.frames.BlockEncoder
-
Attempts to reset some internal state of encoder.
S
- sanitize(BinaryChannelSupplier) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- sanitize(ChannelConsumer<T>) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- sanitize(ChannelSupplier<T>) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- sanitize(Promise<T>) - Method in class io.activej.csp.process.AbstractCommunicatingProcess
- send(O) - Method in interface io.activej.csp.net.Messaging
- send(O) - Method in class io.activej.csp.net.MessagingWithBinaryStreaming
- send(O) - Method in class io.activej.csp.process.AbstractChannelTransformer
- sendBinaryStream() - Method in interface io.activej.csp.net.Messaging
- sendBinaryStream() - Method in class io.activej.csp.net.MessagingWithBinaryStreaming
- sendEndOfStream() - Method in interface io.activej.csp.net.Messaging
- sendEndOfStream() - Method in class io.activej.csp.net.MessagingWithBinaryStreaming
- sendEndOfStream() - Method in class io.activej.csp.process.AbstractChannelTransformer
- set(BinaryChannelSupplier) - Method in interface io.activej.csp.binary.BinaryChannelInput
- set(ChannelConsumer<T>) - Method in interface io.activej.csp.ChannelOutput
- set(ChannelSupplier<ByteBuf>) - Method in interface io.activej.csp.binary.BinaryChannelInput
- set(ChannelSupplier<T>) - Method in interface io.activej.csp.ChannelInput
- size() - Method in class io.activej.csp.queue.ChannelBuffer
-
Returns amount of elements in this buffer.
- sizePrefixed() - Static method in class io.activej.csp.process.frames.FrameFormats
-
A frame format that encodes data preceding it with its size.
- startProcess() - Method in class io.activej.csp.process.AbstractCommunicatingProcess
-
Starts this communicating process if it is not started yet.
- streamTo(Try<ChannelSupplier<T>>, Try<ChannelConsumer<T>>) - Static method in class io.activej.csp.ChannelSuppliers
- streamTo(ChannelConsumer<T>) - Method in interface io.activej.csp.ChannelSupplier
- streamTo(ChannelSupplier<T>, ChannelConsumer<T>) - Static method in class io.activej.csp.ChannelSuppliers
-
Streams data from the
supplierto theconsumeruntilget()ofsupplierreturns a promise ofnull. - streamTo(Promise<? extends ChannelConsumer<T>>) - Method in interface io.activej.csp.ChannelSupplier
- streamTo(Promise<ChannelSupplier<T>>, Promise<ChannelConsumer<T>>) - Static method in class io.activej.csp.ChannelSuppliers
T
- take() - Method in class io.activej.csp.queue.ChannelBuffer
-
Returns a promise of the head of the
bufferif it is not empty. - take() - Method in class io.activej.csp.queue.ChannelBufferWithFallback
- take() - Method in class io.activej.csp.queue.ChannelFileBuffer
- take() - Method in interface io.activej.csp.queue.ChannelQueue
-
Takes an element of this queue and wraps it in
promise. - take() - Method in class io.activej.csp.queue.ChannelZeroBuffer
-
Returns a promise of current
value, if theputis notnull. - takeValue() - Method in class io.activej.csp.ChannelSuppliers.ChannelSupplierOfValue
- toCollector(Collector<T, A, R>) - Method in interface io.activej.csp.ChannelSupplier
- toList() - Method in interface io.activej.csp.ChannelSupplier
- toString() - Method in class io.activej.csp.file.ChannelFileReader
- toString() - Method in class io.activej.csp.file.ChannelFileWriter
- toString() - Method in class io.activej.csp.net.MessagingWithBinaryStreaming
- transform(ChannelConsumer<O>) - Method in interface io.activej.csp.dsl.WithChannelTransformer
- transform(ChannelConsumer<T>) - Method in interface io.activej.csp.dsl.ChannelConsumerTransformer
- transform(ChannelConsumer<T>) - Method in interface io.activej.csp.queue.ChannelQueue
- transform(ChannelSupplier<I>) - Method in interface io.activej.csp.dsl.WithChannelTransformer
- transform(ChannelSupplier<T>) - Method in interface io.activej.csp.dsl.ChannelSupplierTransformer
- transform(ChannelSupplier<T>) - Method in interface io.activej.csp.queue.ChannelQueue
- transformWith(ChannelConsumerTransformer<T, R>) - Method in interface io.activej.csp.ChannelConsumer
-
Transforms current
ChannelConsumerwith providedChannelConsumerTransformer. - transformWith(ChannelSupplierTransformer<T, R>) - Method in interface io.activej.csp.ChannelSupplier
-
Transforms this ChannelSupplier with the provided
fn. - TruncatedBlockException - Exception in io.activej.csp.process.frames
-
Exception indicates a stream that ends with an incomplete Data Block
- TruncatedBlockException(Throwable) - Constructor for exception io.activej.csp.process.frames.TruncatedBlockException
- tryDecode(ByteBufs) - Method in interface io.activej.csp.binary.ByteBufsCodec
- tryDecode(ByteBufs) - Method in interface io.activej.csp.binary.ByteBufsDecoder
U
- until(Predicate<? super T>) - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier, when itsgetis called, its values will be returned until they don't fit thepredicate. - Utils - Class in io.activej.csp.binary
- Utils() - Constructor for class io.activej.csp.binary.Utils
W
- willBeExhausted() - Method in class io.activej.csp.queue.ChannelBuffer
-
Checks if this buffer will have fewer elements than
bufferMinSize, if at least one more element will be taken, by comparing its current size withbufferMinSize. - willBeSaturated() - Method in class io.activej.csp.queue.ChannelBuffer
-
Checks if this buffer will be saturated if at least one more element will be added, by comparing its current size with
bufferMaxSize. - WITH_STACK_TRACE - Static variable in exception io.activej.csp.process.ProcessCompleteException
- withAcknowledgement(UnaryOperator<Promise<Void>>) - Method in interface io.activej.csp.ChannelConsumer
-
Creates a wrapper ChannelConsumer - after its
accept(T value)is called and completed, an acknowledgement is returned. - WithBinaryChannelInput<B> - Interface in io.activej.csp.dsl
- withBufferSize(int) - Method in class io.activej.csp.file.ChannelFileReader
- withBufferSize(MemSize) - Method in class io.activej.csp.file.ChannelFileReader
- WithChannelInput<B,
T> - Interface in io.activej.csp.dsl - WithChannelInputs<T> - Interface in io.activej.csp.dsl
- WithChannelOutput<B,
T> - Interface in io.activej.csp.dsl - WithChannelOutputs<T> - Interface in io.activej.csp.dsl
- WithChannelTransformer<B,
I, O> - Interface in io.activej.csp.dsl - withCompressionLevel(int) - Method in class io.activej.csp.process.frames.LZ4FrameFormat
- withCompressionLevel(int) - Method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
- withDecoderResets() - Method in class io.activej.csp.process.frames.ChannelFrameDecoder
- withDecoderResets(boolean) - Method in class io.activej.csp.process.frames.ChannelFrameDecoder
- withEncoderResets() - Method in class io.activej.csp.process.frames.ChannelFrameEncoder
- withEncoderResets(boolean) - Method in class io.activej.csp.process.frames.ChannelFrameEncoder
- withEndOfStream(UnaryOperator<Promise<Void>>) - Method in interface io.activej.csp.ChannelSupplier
- withExecutor(AsyncExecutor) - Method in interface io.activej.csp.ChannelConsumer
-
Creates a wrapper ChannelConsumer which executes current ChannelConsumer's
accept(T value)within theasyncExecutor. - withExecutor(AsyncExecutor) - Method in interface io.activej.csp.ChannelSupplier
-
Creates and returns a new
AbstractChannelSupplierbased on current ChannelSupplier and makes its promise executed by the providedasyncExecutor. - withForceOnClose(boolean) - Method in class io.activej.csp.file.ChannelFileWriter
- withHighCompression() - Method in class io.activej.csp.process.frames.LZ4FrameFormat
- withHighCompression() - Method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
- withIgnoreMissingEndOfStream(boolean) - Method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
- withInput(BinaryChannelSupplier) - Method in interface io.activej.csp.dsl.WithBinaryChannelInput
- withInput(ChannelSupplier<T>) - Method in interface io.activej.csp.dsl.WithChannelInput
- withLegacyChecksum(boolean) - Method in class io.activej.csp.process.frames.LZ4LegacyFrameFormat
-
Deprecated.
- withLimit(long) - Method in class io.activej.csp.file.ChannelFileReader
- withMagicNumber(FrameFormat, byte[]) - Static method in class io.activej.csp.process.frames.FrameFormats
-
A frame format that adds specified magic number to the start of the stream.
- withOffset(long) - Method in class io.activej.csp.file.ChannelFileReader
- withOffset(long) - Method in class io.activej.csp.file.ChannelFileWriter
- withOutput(ChannelConsumer<T>) - Method in interface io.activej.csp.dsl.WithChannelOutput
- withSplitFunction(UnaryOperator<T>) - Method in class io.activej.csp.process.ChannelSplitter
-
Allows to set a function that will be used for splitting a value.
All Classes and Interfaces|All Packages|Serialized Form