Package | Description |
---|---|
org.agilewiki.jactor |
Introduction to JActor
|
org.agilewiki.jactor.factory | |
org.agilewiki.jactor.lpc |
Introducing JLPCActor--the Basic Actor
|
org.agilewiki.jactor.nbLock |
NBLock provides exclusive access to a resource without blocking a thread.
|
org.agilewiki.jactor.properties |
A table of name/value pairs.
|
org.agilewiki.jactor.pubsub.actorName |
Actors which include the ActorName component can be named
and added to an ActorRegistry.
|
org.agilewiki.jactor.pubsub.publisher | |
org.agilewiki.jactor.pubsub.subscriber | |
org.agilewiki.jactor.simpleMachine |
You can think of a State Machine as a kind of computer.
|
Modifier and Type | Method and Description |
---|---|
Object |
JAFuture.send(Actor actor,
Request request)
Sends a request and waits for a response.
|
void |
JAEvent.sendEvent(Actor actor,
Request request)
Sends a request without having to wait for a response.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Factory
Defines actor types and instantiating
|
Modifier and Type | Class and Description |
---|---|
class |
JAFactory
An actor for defining actor types and creating instances.
|
Modifier and Type | Method and Description |
---|---|
static Actor |
JAFactory.newActor(Actor actor,
String actorType)
Creates a new actor.
|
static Actor |
JAFactory.newActor(Actor actor,
String actorType,
Mailbox mailbox)
Creates a new actor.
|
static Actor |
JAFactory.newActor(Actor actor,
String actorType,
Mailbox mailbox,
Actor parent)
Creates a new actor.
|
Actor |
JAFactory.newActor(String actorType)
Creates a new actor.
|
Actor |
Factory.newActor(String actorType)
Creates a new actor.
|
Actor |
JAFactory.newActor(String actorType,
Mailbox mailbox)
Creates a new actor.
|
Actor |
Factory.newActor(String actorType,
Mailbox mailbox)
Creates a new actor.
|
Actor |
JAFactory.newActor(String actorType,
Mailbox mailbox,
Actor parent)
Creates a new actor.
|
Actor |
Factory.newActor(String actorType,
Mailbox mailbox,
Actor parent)
Creates a new actor.
|
Modifier and Type | Method and Description |
---|---|
static ActorFactory |
JAFactory.getActorFactory(Actor actor,
String actorType)
Returns the requested actor factory.
|
static Actor |
JAFactory.newActor(Actor actor,
String actorType)
Creates a new actor.
|
static Actor |
JAFactory.newActor(Actor actor,
String actorType,
Mailbox mailbox)
Creates a new actor.
|
static Actor |
JAFactory.newActor(Actor actor,
String actorType,
Mailbox mailbox,
Actor parent)
Creates a new actor.
|
JLPCActor |
ActorFactory.newActor(Mailbox mailbox,
Actor parent)
Create and configure an actor.
|
Actor |
JAFactory.newActor(String actorType,
Mailbox mailbox,
Actor parent)
Creates a new actor.
|
Actor |
Factory.newActor(String actorType,
Mailbox mailbox,
Actor parent)
Creates a new actor.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TargetActor
Used by Request to extend TARGET_TYPE instead of Actor
as a means of avoiding ambiguous method signatures.
|
Modifier and Type | Class and Description |
---|---|
class |
JLPCActor
An actor which implements Local Procedure Calls (LPC)
and mostly works synchronously.
|
Modifier and Type | Method and Description |
---|---|
TARGET_TYPE |
Request.getTargetActor(Actor parent)
Searches the parent stack for the matching TARGET_TYPE.
|
void |
JLPCActor.initialize(Actor parent)
Initialize a degraded LiteActor
|
void |
JLPCActor.initialize(Mailbox mailbox,
Actor parent)
Initialize a LiteActor
|
void |
JLPCActor.initialize(Mailbox mailbox,
Actor parent,
ActorFactory factory)
Initialize a LiteActor
|
abstract boolean |
Request.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
void |
Internals.send(Actor actor,
Object request,
RP rp)
Send a request to another actor.
|
protected void |
JLPCActor.send(Actor actor,
Request request,
RP rp)
Send a request to another actor.
|
void |
JLPCActor.SMBuilder.send(Actor actor,
Request request,
RP rp) |
void |
Request.send(APCRequestSource requestSource,
Actor targetActor,
RP<RESPONSE_TYPE> rp)
Send a request.
|
RESPONSE_TYPE |
Request.send(JAFuture future,
Actor targetActor)
Send a request and waits for a response.
|
void |
Request.sendEvent(Actor targetActor)
Send a request event.
|
void |
Internals.sendEvent(Actor actor,
Object request)
Send a request to another actor and discard any response.
|
protected void |
JLPCActor.sendEvent(Actor actor,
Request request)
Send a request to another actor and discard any response.
|
void |
Request.sendEvent(APCRequestSource requestSource,
Actor targetActor)
Send a request event.
|
Modifier and Type | Class and Description |
---|---|
class |
JANBLock
Non-blocking Lock.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Unlock.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
boolean |
Lock.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
Modifier and Type | Interface and Description |
---|---|
interface |
Properties
Manages a property set.
|
Modifier and Type | Class and Description |
---|---|
class |
JAProperties
GetProperties first checks the component's own table of name/value pairs.
|
Modifier and Type | Method and Description |
---|---|
static Object |
JAProperties.getProperty(Actor targetActor,
String propertyName) |
static void |
JAProperties.setProperty(Actor targetActor,
String propertyName,
Object propertyValue) |
Modifier and Type | Interface and Description |
---|---|
interface |
ActorName
Immutable actor names.
|
Modifier and Type | Class and Description |
---|---|
class |
JActorName
Implements immutable actor object names.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Publisher
A publisher actor.
|
Modifier and Type | Class and Description |
---|---|
class |
JAPublisher
Implements Publisher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Unsubscribe.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
boolean |
Subscribe.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
boolean |
Publish.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
boolean |
GetSubscriber.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
Modifier and Type | Interface and Description |
---|---|
interface |
Subscriber
An actor that can be given a subscription.
|
Modifier and Type | Class and Description |
---|---|
class |
JASubscriber
Implements Subscriber.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Unsubscribed.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
boolean |
Subscribed.isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
Modifier and Type | Method and Description |
---|---|
Actor |
ActorFunc.get(SimpleMachine sm)
Returns an actor.
|
Actor |
_SendVV.getTargetActor(SimpleMachine stateMachine)
Returns the actor which is to receive the message.
|
Actor |
_SendVF.getTargetActor(SimpleMachine stateMachine)
Returns the actor which is to receive the message.
|
Actor |
_SendFV.getTargetActor(SimpleMachine stateMachine)
Returns the actor which is to receive the message.
|
Actor |
_SendFF.getTargetActor(SimpleMachine stateMachine)
Returns the actor which is to receive the message.
|
abstract Actor |
_Send.getTargetActor(SimpleMachine stateMachine)
Returns the actor which is to receive the message.
|
Modifier and Type | Method and Description |
---|---|
void |
_SMBuilder._send(Actor targetActor,
ObjectFunc request)
Create a _SendVF.
|
void |
_SMBuilder._send(Actor targetActor,
ObjectFunc request,
String resultName)
Create a _SendVF.
|
void |
_SMBuilder._send(Actor targetActor,
Request request)
Create a _SendVV.
|
void |
_SMBuilder._send(Actor targetActor,
Request request,
String resultName)
Create a _SendVV.
|
abstract void |
_SMBuilder.send(Actor actor,
Request request,
RP rp)
Send a request to an actor.
|
void |
SimpleMachine.send(Actor actor,
Request request,
RP rp)
Send a request to an actor.
|
Constructor and Description |
---|
_SendVF(_SMBuilder parentSMB,
Actor targetActor,
ObjectFunc request,
String resultName)
Create a _SendVF.
|
_SendVV(_SMBuilder parentSMB,
Actor targetActor,
Request request,
String resultName)
Create a _SendVV.
|
Copyright © 2012. All Rights Reserved.