|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.actor.TypedActor.TypedActor<R,T>
public static class TypedActor.TypedActor<R,T extends R>
INTERNAL API
Implementation of TypedActor as an Actor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface akka.actor.Actor |
|---|
Actor.emptyBehavior$ |
| Constructor Summary | |
|---|---|
TypedActor.TypedActor(java.util.concurrent.atomic.AtomicReference<R> proxyVar,
scala.Function0<T> createInstance,
scala.collection.immutable.Seq<java.lang.Class<?>> interfaces)
|
|
| Method Summary | ||
|---|---|---|
void |
postRestart(java.lang.Throwable reason)
User overridable callback: By default it calls preStart(). |
|
void |
postStop()
User overridable callback. |
|
void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
User overridable callback: '''By default it disposes of all children and then calls postStop().''' |
|
void |
preStart()
User overridable callback. |
|
java.util.concurrent.atomic.AtomicReference<R> |
proxyVar()
|
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function with the actor logic. |
|
SupervisorStrategy |
supervisorStrategy()
User overridable definition the strategy to use for supervising child actors. |
|
protected
|
withContext(scala.Function0<T> unitOfWork)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface akka.actor.Actor |
|---|
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, self, sender, unhandled |
| Constructor Detail |
|---|
public TypedActor.TypedActor(java.util.concurrent.atomic.AtomicReference<R> proxyVar,
scala.Function0<T> createInstance,
scala.collection.immutable.Seq<java.lang.Class<?>> interfaces)
| Method Detail |
|---|
public java.util.concurrent.atomic.AtomicReference<R> proxyVar()
public SupervisorStrategy supervisorStrategy()
Actor
supervisorStrategy in interface Actorpublic void preStart()
Actor
preStart in interface Actorpublic void postStop()
Actor
postStop in interface Actor
public void preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
ActorpostStop().'''
preRestart in interface Actorreason - the Throwable that caused the restart to happenmessage - optionally the current message the actor processed when failing, if applicable
Is called on a crashed Actor right BEFORE it is restarted to allow clean
up of resources before Actor is terminated.public void postRestart(java.lang.Throwable reason)
ActorpreStart().
postRestart in interface Actorreason - the Throwable that caused the restart to happen
Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.protected <T> T withContext(scala.Function0<T> unitOfWork)
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
receive in interface Actor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||