Package org.apache.pekko.dispatch
Class Foreach<T>
- java.lang.Object
-
- org.apache.pekko.dispatch.japi.UnitFunctionBridge<T>
-
- org.apache.pekko.dispatch.Foreach<T>
-
- All Implemented Interfaces:
scala.Function1<T,scala.runtime.BoxedUnit>
public abstract class Foreach<T> extends japi.UnitFunctionBridge<T>
Callback for the Future.foreach operation that will be invoked if the Future that this callback is registered on becomes completed with a success. This method is essentially the same operation as onSuccess.SAM (Single Abstract Method) class Java API
-
-
Constructor Summary
Constructors Constructor Description Foreach()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
each(T result)
This method will be invoked once when/if a Future that this callback is registered on becomes successfully completedvoid
internal(T t)
-
Methods inherited from class org.apache.pekko.dispatch.japi.UnitFunctionBridge
apply, apply$mcLD$sp, apply$mcLF$sp, apply$mcLI$sp, apply$mcLJ$sp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.Function1
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, compose, toString
-
-
-
-
Method Detail
-
each
public abstract void each(T result) throws java.lang.Throwable
This method will be invoked once when/if a Future that this callback is registered on becomes successfully completed- Throws:
java.lang.Throwable
-
internal
public final void internal(T t)
- Overrides:
internal
in classjapi.UnitFunctionBridge<T>
-
-