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
AsyncCloseables.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 anintand a custom argument and returns the result.A special predicate that takes anintand a custom argument to evaluate.A holder of items for aBlockingIterable.Processor.Utilities to await the result of an asynchronous source from a blocking context, unwrappingExecutionExceptionand preserving interrupt semantics.A static factory ofBufferStrategyinstances.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.A representation of a context state that can be attached to the current thread.Functionality related to capturing thread-local like context for later restoration across async boundaries.An asynchronous computation that does not emit any data.An operator contract for aCompletable.AThreadFactoryimplementation.DelegatingAsyncCloseable<T extends AsyncCloseable>AsyncCloseablethat delegates all calls to anotherAsyncCloseable.ListenableAsyncCloseablethat delegates all calls to anotherListenableAsyncCloseable.A general abstraction to execute immediate and delayed tasks.Utility methods to create variousExecutors.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 twolongarguments.Static factory methods for creating processor instances for different type of sources.Consumer of items from aPublisherProcessorSignalsHolderorBlockingProcessorSignalsHolder.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.AnExceptioninstance used to indicate termination of repeats.Accumulates signals for thePublisherreplay operator.Utilities to customizeReplayStrategy.Used to customize the strategy for thePublisherreplay 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.An abstraction for detaching a context from the current thread.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.Subscribercan terminate.A set of adapter methods to convert an asynchronous source in this module to a corresponding source inio.servicetalk.concurrentmodule.A signal containing the data from a series ofPublishers switched in a serial fashion.A contract that provides discrete callbacks for various ways in which aPublisherSource.Subscriberor aCompletableSource.Subscribercan terminate.TriConsumer<X,Y, Z> Represents an operation that accepts three input arguments and returns no result.
Publisher.groupBy(Function, int)instead.