Package io.servicetalk.concurrent.internal
-
Interface Summary Interface Description RejectedSubscribeError Used in scenarios where a subscribe to an asynchronous source is attempted, but no "real" subscription is established.SignalOffloader A contract to offload signals to and from any asynchronous source.SignalOffloaderFactory A factory to create new instances ofSignalOffloader. -
Class Summary Class Description AbstractCloseableIterable<T> An abstract implementation ofCloseableIterablethat wraps anIterable.AbstractCloseableIteratorAsInputStream<T> ArrayUtils Utilities for arrays.AutoClosableUtils Utilities forAutoCloseable.BlockingIterables Utility methods forBlockingIterable.CancelImmediatelySubscriber ConcurrentSubscription This class prevents concurrent invocation ofPublisherSource.Subscriptionmethods and preserves the Reactive Streams, 2.7 rule when there is a possibility of concurrency.ConcurrentTerminalSubscriber<T> APublisherSource.Subscriberthat allows for concurrent delivery of terminal events.ConcurrentUtils Utilities which can be used for concurrency.DelayedCancellable ACancellablewhich serves as a placeholder until the "real"Cancellableis available.DelayedSubscription APublisherSource.Subscriptionwhich serves as a placeholder until the "real"PublisherSource.Subscriptionis available.DelegatingSignalOffloader ASignalOffloaderthat delegates all calls to anotherSignalOffloader.DelegatingSignalOffloaderFactory ASignalOffloaderFactorythat delegates all calls to anotherSignalOffloaderFactory.EmptySubscriptions Utility methods forPublisherSource.Subscriptions which don't deliver any data.FlowControlUtils A set of utility methods for safe math operations to prevent overflow.FutureUtils A set of utilities for interacting withFuture.LatestValueSubscriber<T> APublisherSource.Subscriberwhich makes the latest value fromLatestValueSubscriber.onNext(Object)available outside the context of thePublisherSource.Subscriber.ScalarValueSubscription<T> APublisherSource.Subscriptionthat only emits a single value.SequentialCancellable ACancellablethat can hold at most oneCancellablethat will be cancelled when this is cancelled.ServiceTalkTestTimeout Standard timeout shared by test classes.SignalOffloaders A factory for creating differentSignalOffloaders.SubscriberUtils A set of utilities for commonPublisherSource.Subscribertasks.TerminalNotification Holder ofThrowable.ThreadInterruptingCancellable ACancellablethat willinterrupt a thread.ThrowableUtils Utility for creating staticThrowables. -
Exception Summary Exception Description DeliberateException DuplicateSubscribeException Used in scenarios where a subscribe to an asynchronous source is subscribed to, but there is already a subscriber and the source doesn't support multiple subscribers.QueueFullAndRejectedSubscribeException Exception indicating a bounded queue is full, which also resulted in a rejected subscribe.QueueFullException Exception indicating a bounded queue is full.RejectedSubscribeException Used in scenarios where a subscribe to an asynchronous source is attempted, but no "real" subscription is established.