Package org.apache.pekko.dispatch
Class OnFailure
- java.lang.Object
-
- scala.runtime.AbstractPartialFunction<T,scala.runtime.BoxedUnit>
-
- org.apache.pekko.dispatch.japi.CallbackBridge<java.lang.Throwable>
-
- org.apache.pekko.dispatch.OnFailure
-
- All Implemented Interfaces:
scala.Function1<java.lang.Throwable,scala.runtime.BoxedUnit>,scala.PartialFunction<java.lang.Throwable,scala.runtime.BoxedUnit>
public abstract class OnFailure extends japi.CallbackBridge<java.lang.Throwable>
Deprecated.Use Java's CompletableFuture instead, will be removed in Pekko 2.0.0. Since 1.2.0.Callback for when a Future is completed with a failure SAM (Single Abstract Method) classJava API
-
-
Constructor Summary
Constructors Constructor Description OnFailure()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidinternal(java.lang.Throwable failure)Deprecated.abstract voidonFailure(java.lang.Throwable failure)Deprecated.This method will be invoked once when/if a Future that this callback is registered on becomes completed with a failure-
Methods inherited from class org.apache.pekko.dispatch.japi.CallbackBridge
apply, isDefinedAt
-
Methods inherited from class scala.runtime.AbstractPartialFunction
andThen, andThen, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, applyOrElse, compose, compose, elementWise, lift, orElse, runWith, toString, unapply
-
-
-
-
Method Detail
-
internal
protected final void internal(java.lang.Throwable failure)
Deprecated.- Overrides:
internalin classjapi.CallbackBridge<java.lang.Throwable>
-
onFailure
public abstract void onFailure(java.lang.Throwable failure) throws java.lang.ThrowableDeprecated.This method will be invoked once when/if a Future that this callback is registered on becomes completed with a failure- Throws:
java.lang.Throwable
-
-