paxel.lintstone.api.LintStoneSystem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lintstone-java8 Show documentation
Show all versions of lintstone-java8 Show documentation
Lightweight Actor Framework
The newest version!
package paxel.lintstone.api;
import java.time.Duration;
import java.util.Optional;
/**
* The LintStone Actor system.
*/
public interface LintStoneSystem {
/**
* This generates and registers an Actor according to the given {@link ActorSettings}.
*
* @param name The name of the actor. The name must be unique in the system.
* @param factory The factory to create the actor if not already exists.
* @param initMessage The optional init message.
* @param settings The actor settings. Use {@link ActorSettings#create()} to create a builder and {@link ActorSettingsBuilder#build()} to build the instance.
* @return The {@link LintStoneActorAccess} object
*/
public LintStoneActorAccess registerActor(String name, LintStoneActorFactory factory, Optional