IActorContext, IActorRefpublic final class SimpleActor extends Object implements IActorRef, IActorContext
| Modifier and Type | Field | Description |
|---|---|---|
static int |
ALIVE |
|
static int |
CLOSING |
|
static int |
DEAD |
|
static int |
DYING |
|
static int |
ERROR |
|
static int |
RUNNING |
|
static int |
STARTING |
| Constructor | Description |
|---|---|
SimpleActor(String pName,
String pAddr,
IActorRef pParent,
ISystem pSystem,
E pExternalMind) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
address() |
|
<E extends SimpleExternalActorMind> |
createMinion(E pMinionMind,
String pName) |
|
int |
dispatcher() |
|
IEnvelope |
envelope() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
id() |
|
IMinions |
minions() |
|
IActorRef |
myself() |
|
String |
name() |
|
IActorRef |
parent() |
|
void |
start() |
|
int |
status() |
|
void |
stop() |
|
ISystem |
system() |
|
void |
tell(Object pData,
IActorRef pSender) |
|
void |
tell(IEnvelope pEnvelope) |
|
void |
think(IEnvelope pEnvelope) |
public static final int ALIVE
public static final int STARTING
public static final int RUNNING
public static final int CLOSING
public static final int DYING
public static final int DEAD
public static final int ERROR
public SimpleActor(String pName, String pAddr, IActorRef pParent, ISystem pSystem, E pExternalMind) throws IllegalArgumentException
IllegalArgumentExceptionpublic final void start()
public final void stop()
public String id()
id in interface IActorContextid in interface IActorRefpublic String name()
name in interface IActorContextname in interface IActorRefpublic String address()
address in interface IActorContextaddress in interface IActorRefpublic IActorRef myself()
myself in interface IActorContextpublic ISystem system()
system in interface IActorContextpublic IEnvelope envelope()
envelope in interface IActorContextpublic IActorRef parent()
parent in interface IActorContextpublic IMinions minions()
minions in interface IActorContextpublic int status()
status in interface IActorContextpublic <E extends SimpleExternalActorMind> IActorRef createMinion(E pMinionMind, String pName)
createMinion in interface IActorContextpublic int dispatcher()
dispatcher in interface IActorContextpublic void think(IEnvelope pEnvelope)
think in interface IActorContextCopyright © 2018. All rights reserved.