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.UseTestCompletable
instead.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 void
handleSubscribe(CompletableSource.Subscriber subscriber)
Deprecated.Handles a subscriber to thisCompletable
.boolean
isCancelled()
Deprecated.void
onComplete()
Deprecated.Success terminal state.void
onError(java.lang.Throwable t)
Deprecated.Failed terminal state.void
onSubscribe(Cancellable cancellable)
Deprecated.Called when the associatedCompletableSource
is subscribed viaCompletableSource.subscribe(Subscriber)
.void
sendOnSubscribe()
Deprecated.LegacyTestCompletable
verifyCancelled()
Deprecated.LegacyTestCompletable
verifyListenCalled()
Deprecated.LegacyTestCompletable
verifyListenNotCalled()
Deprecated.LegacyTestCompletable
verifyNotCancelled()
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:Completable
Handles a subscriber to thisCompletable
.This method is invoked internally by
Completable
for every call to theCompletable.subscribeInternal(CompletableSource.Subscriber)
method.- Specified by:
handleSubscribe
in classCompletable
- Parameters:
subscriber
- the subscriber.
-
sendOnSubscribe
public void sendOnSubscribe()
Deprecated.
-
onSubscribe
public void onSubscribe(Cancellable cancellable)
Deprecated.Description copied from interface:CompletableSource.Subscriber
Called when the associatedCompletableSource
is subscribed viaCompletableSource.subscribe(Subscriber)
.- Specified by:
onSubscribe
in interfaceCompletableSource.Subscriber
- Parameters:
cancellable
- ACancellable
that can be used to cancel the asynchronous computation for this subscriber.
-
onComplete
public void onComplete()
Deprecated.Description copied from interface:CompletableSource.Subscriber
Success terminal state.No further events will be sent.
- Specified by:
onComplete
in interfaceCompletableSource.Subscriber
-
onError
public void onError(java.lang.Throwable t)
Deprecated.Description copied from interface:CompletableSource.Subscriber
Failed terminal state.No further events will be sent.
- Specified by:
onError
in 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.
-
-