Package io.servicetalk.concurrent.api
Class LegacyTestCompletable
- java.lang.Object
-
- io.servicetalk.concurrent.api.Completable
-
- io.servicetalk.concurrent.api.LegacyTestCompletable
-
- All Implemented Interfaces:
CompletableSource.Subscriber
@Deprecated public class LegacyTestCompletable extends Completable implements CompletableSource.Subscriber
Deprecated.UseTestCompletableinstead.Deprecated.
-
-
Constructor Summary
Constructors Constructor Description LegacyTestCompletable()Deprecated.LegacyTestCompletable(boolean invokeListenerPostCancel, boolean deferOnSubscribe)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidhandleSubscribe(CompletableSource.Subscriber subscriber)Deprecated.Handles a subscriber to thisCompletable.booleanisCancelled()Deprecated.voidonComplete()Deprecated.Success terminal state.voidonError(java.lang.Throwable t)Deprecated.Failed terminal state.voidonSubscribe(Cancellable cancellable)Deprecated.Called when the associatedCompletableSourceis subscribed viaCompletableSource.subscribe(Subscriber).voidsendOnSubscribe()Deprecated.LegacyTestCompletableverifyCancelled()Deprecated.LegacyTestCompletableverifyListenCalled()Deprecated.LegacyTestCompletableverifyListenNotCalled()Deprecated.LegacyTestCompletableverifyNotCancelled()Deprecated.-
Methods inherited from class io.servicetalk.concurrent.api.Completable
afterCancel, afterFinally, afterFinally, afterOnComplete, afterOnError, afterOnSubscribe, afterSubscriber, amb, amb, ambWith, anyOf, anyOf, beforeCancel, beforeFinally, beforeFinally, beforeOnComplete, beforeOnError, beforeOnSubscribe, beforeSubscriber, completed, concat, concat, concat, defer, failed, fromFuture, fromRunnable, fromStage, idleTimeout, idleTimeout, idleTimeout, idleTimeout, liftAsync, liftSync, merge, merge, merge, merge, mergeAll, mergeAll, mergeAll, mergeAll, mergeAllDelayError, mergeAllDelayError, mergeAllDelayError, mergeAllDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, never, onErrorResume, publishAndSubscribeOn, publishAndSubscribeOnOverride, publishOn, publishOnOverride, repeat, repeatWhen, retry, retryWhen, subscribe, subscribe, subscribeInternal, subscribeOn, subscribeOnOverride, subscribeShareContext, toCompletionStage, toFuture, toPublisher, toSingle, whenCancel, whenFinally, whenFinally, whenOnComplete, whenOnError, whenOnSubscribe, whenSubscriber
-
-
-
-
Method Detail
-
handleSubscribe
public void handleSubscribe(CompletableSource.Subscriber subscriber)
Deprecated.Description copied from class:CompletableHandles a subscriber to thisCompletable.This method is invoked internally by
Completablefor every call to theCompletable.subscribeInternal(CompletableSource.Subscriber)method.- Specified by:
handleSubscribein classCompletable- Parameters:
subscriber- the subscriber.
-
sendOnSubscribe
public void sendOnSubscribe()
Deprecated.
-
onSubscribe
public void onSubscribe(Cancellable cancellable)
Deprecated.Description copied from interface:CompletableSource.SubscriberCalled when the associatedCompletableSourceis subscribed viaCompletableSource.subscribe(Subscriber).- Specified by:
onSubscribein interfaceCompletableSource.Subscriber- Parameters:
cancellable- ACancellablethat can be used to cancel the asynchronous computation for this subscriber.
-
onComplete
public void onComplete()
Deprecated.Description copied from interface:CompletableSource.SubscriberSuccess terminal state.No further events will be sent.
- Specified by:
onCompletein interfaceCompletableSource.Subscriber
-
onError
public void onError(java.lang.Throwable t)
Deprecated.Description copied from interface:CompletableSource.SubscriberFailed terminal state.No further events will be sent.
- Specified by:
onErrorin interfaceCompletableSource.Subscriber- Parameters:
t- the throwable signaled
-
isCancelled
public boolean isCancelled()
Deprecated.
-
verifyListenCalled
public LegacyTestCompletable verifyListenCalled()
Deprecated.
-
verifyListenNotCalled
public LegacyTestCompletable verifyListenNotCalled()
Deprecated.
-
verifyCancelled
public LegacyTestCompletable verifyCancelled()
Deprecated.
-
verifyNotCancelled
public LegacyTestCompletable verifyNotCancelled()
Deprecated.
-
-