Package io.servicetalk.concurrent.api
@ElementsAreNonnullByDefault
package io.servicetalk.concurrent.api
ServiceTalk concurrent APIs which follow Reactive Streams semantics.
-
ClassDescriptionUsed to close/shutdown a resource.A utility class to create
AsyncCloseable
s.A resource that can be converted to anAsyncCloseable
.Presents a static interface to retain state in an asynchronous environment.A utility class for methods related toAutoCloseable
.BiIntFunction<T,R> A special function that takes anint
and a custom argument and returns the result.A special predicate that takes anint
and a custom argument to evaluate.A holder of items for aBlockingIterable.Processor
.A static factory ofBufferStrategy
instances.BufferStrategy<T,BC extends BufferStrategy.Accumulator<T, B>, B> An intermediate mutable object that holds items till it isfinished
.A mapper to transformbyte[]
buffer regions into a desired typeT
.An asynchronous computation that does not emit any data.An operator contract for aCompletable
.AThreadFactory
implementation.A general abstraction to execute immediate and delayed tasks.Utility methods to create variousExecutor
s.Function3<T1,T2, T3, R> A functional interface that accepts 3 arguments and generates a return value.Function4<T1,T2, T3, T4, R> A functional interface that accepts 4 arguments and generates a return value.GroupedPublisher<Key,T> A group as emitted byPublisher.groupBy(Function, int)
or its variants.Deprecated.Provides a way to subscribe whenAsyncCloseable.closeAsync()
is completed.A special consumer that takes twolong
arguments.Static factory methods for creating processor instances for different type of sources.Consumer of items from aPublisherProcessorSignalsHolder
orBlockingProcessorSignalsHolder
.Publisher<T>An asynchronous computation that produces 0, 1 or more elements and may or may not terminate successfully or with an error.PublisherOperator<T,R> An operator contract for aPublisher
.A holder of items for aPublisherSource.Processor
.A set of strategies to use for repeating withPublisher.repeatWhen(IntFunction)
,Single.repeatWhen(IntFunction)
andCompletable.repeatWhen(IntFunction)
or in general.AnException
instance used to indicate termination of repeats.Accumulates signals for thePublisher
replay operator.Utilities to customizeReplayStrategy
.Used to customize the strategy for thePublisher
replay operator.A builder ofReplayStrategy
.A set of strategies to use for retrying withPublisher.retryWhen(BiIntFunction)
,Single.retryWhen(BiIntFunction)
, andCompletable.retryWhen(BiIntFunction)
or in general.ScanLifetimeMapper<T,R> Provides the ability to transform (aka map) signals emitted via thePublisher.scanWithLifetimeMapper(Supplier)
operator, as well as the ability to cleanup state viaScanLifetimeMapper.afterFinally()
.ScanMapper<T,R> Provides the ability to transform (aka map) signals emitted via thePublisher.scanWithMapper(Supplier)
operator.Result of a mapping operation of a terminal signal.Deprecated.UseScanLifetimeMapper
.ScanWithMapper<T,R> Deprecated.UseScanMapper
.Single<T>An asynchronous computation that either completes with success giving the result or completes with an error.SingleOperator<T,R> An operator contract for aSingle
.A contract that provides discrete callbacks for various ways in which aSingleSource.Subscriber
can terminate.A set of adapter methods to convert an asynchronous source in this module to a corresponding source inio.servicetalk.concurrent
module.A signal containing the data from a series ofPublisher
s switched in a serial fashion.A contract that provides discrete callbacks for various ways in which aPublisherSource.Subscriber
or aCompletableSource.Subscriber
can terminate.TriConsumer<X,Y, Z> Represents an operation that accepts three input arguments and returns no result.
Publisher.groupBy(Function, int)
instead.