Uses of Interface
net.sodacan.core.Actor
Packages that use Actor
Package
Description
This package contains most of the Interfaces of Sodacan.
A small island of compute sending and receiving messages to/from other Actors.
A message flows from a source Actor to a destination Actor.
-
Uses of Actor in net.sodacan.core
Methods in net.sodacan.core that return ActorMethods in net.sodacan.core that return types with arguments of type ActorMethods in net.sodacan.core with parameters of type ActorModifier and TypeMethodDescriptionvoid
Serializer.deserialize
(byte[] source, Actor actor) Deserialize the @Save fields of an Actor into an existing actor.Message.notImplemented
(Config config, Actor actor) This method is called when a message is sent to an Actor but the Actor has not overriden the processMessage method.boolean
Message.postprocess
(Config config, Actor actor) This method is called when a message is sent by an Actor.boolean
Message.preprocess
(Config config, Actor actor) This method is called after a message is deserialized and ready to be processed by the target actor.byte[]
Serialize the @Save fields of an Actorvoid
This method is called when a message is sent by an Actor and the message as no further routes this it will be destroyed just after this method is called. -
Uses of Actor in net.sodacan.core.actor
Classes in net.sodacan.core.actor that implement ActorModifier and TypeClassDescriptionclass
class
This special Actor handles outbound messages from an ActorGroup to another ActorGroup.class
This host-bound actor displays statistics periodically.class
A JournalWriter Actor is responsible for writing state to a journal.class
A kind of WorkerActor that Sleeps for a while, sends a message, and then goes away.class
This timer actor provides a simple but important service for other Actors: It will accept a message, hold on to the message for a specified amount of time and then forward that message to its next step which could be the Actor that sent the message or any other actor.class
A WorkerActor has no state, it's ephemeral.Fields in net.sodacan.core.actor declared as Actor -
Uses of Actor in net.sodacan.core.config
Fields in net.sodacan.core.config with type parameters of type ActorModifier and TypeFieldDescriptionActorMetadata.actorClass
protected BiFunction
<Config, ActorId, Actor> ActorMetadata.factory
Methods in net.sodacan.core.config that return ActorModifier and TypeMethodDescriptionActorMetadata.createActor
(Config config, ActorId actorId) DefaultConfig.createActor
(ActorId actorId) Methods in net.sodacan.core.config that return types with arguments of type ActorModifier and TypeMethodDescriptionActorMetadata.getActorClass()
DefaultConfig.getActorClass
(String actorType) Get the class associated with an ActorType which is either a string assigned to the actor by the ActorType annotation or the full class name.protected BiFunction
<Config, ActorId, Actor> ActorMetadata.makeFactory()
Method parameters in net.sodacan.core.config with type arguments of type ActorModifier and TypeMethodDescriptionBaseBuilder.registerActorType
(String actorType, Class<? extends Actor> type) Register a new ActorType with a default constructorBaseBuilder.registerActorType
(String actorType, Class<? extends Actor> type, BiFunction<Config, ActorId, Actor> factory) global static Explicitly register an actor type name to actor class.BaseBuilder.registerActorType
(String actorType, Class<? extends Actor> type, BiFunction<Config, ActorId, Actor> factory) global static Explicitly register an actor type name to actor class.Constructor parameters in net.sodacan.core.config with type arguments of type ActorModifierConstructorDescriptionActorMetadata
(Class<? extends Actor> actorClass, BiFunction<Config, ActorId, Actor> factory) ActorMetadata
(Class<? extends Actor> actorClass, BiFunction<Config, ActorId, Actor> factory) -
Uses of Actor in net.sodacan.core.message
Methods in net.sodacan.core.message with parameters of type ActorModifier and TypeMethodDescriptionDefaultMessage.notImplemented
(Config config, Actor actor) boolean
DefaultMessage.postprocess
(Config config, Actor actor) boolean
DefaultMessage.preprocess
(Config config, Actor actor) void
-
Uses of Actor in net.sodacan.core.serialize.gson
Methods in net.sodacan.core.serialize.gson with parameters of type ActorModifier and TypeMethodDescriptionvoid
GsonSerializer.deserialize
(byte[] source, Actor actor) To deserialize an Actor requires two steps.byte[]
We are asked to serialize the fields of an actor, rather than the Actor as a whole. -
Uses of Actor in net.sodacan.core.serialize.kryo
Methods in net.sodacan.core.serialize.kryo with parameters of type ActorModifier and TypeMethodDescriptionvoid
KryoSerializer.deserialize
(byte[] source, Actor actor) byte[]