public class BamPhpActor extends SimpleActor
Constructor and Description |
---|
BamPhpActor() |
BamPhpActor(Path script,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEncoding() |
Path |
getScript() |
void |
init() |
void |
message(java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Receives a unidirectional message.
|
void |
messageError(java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
Receives a message error.
|
void |
query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Receives a query call, acting as a service for
the query.
|
void |
queryError(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
Handles a query error from a service Actor.
|
void |
queryResult(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Handles a query response from a service Actor.
|
void |
setEncoding(java.lang.String encoding) |
void |
setScript(Path script) |
java.lang.String |
toString() |
getActor, getAddress, getBroker, getMailbox, getSender, setAddress, setBroker, setMailbox
isClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isClosed
public BamPhpActor()
public BamPhpActor(Path script, java.lang.String encoding)
public Path getScript()
public void setScript(Path script)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
@PostConstruct public void init() throws ConfigException
ConfigException
public void message(java.lang.String to, java.lang.String from, java.io.Serializable value)
AbstractMessageStream
message
in interface MessageStream
message
in class AbstractMessageStream
to
- the target actor's addressfrom
- the source actor's addressvalue
- the message payloadpublic void messageError(java.lang.String to, java.lang.String from, java.io.Serializable value, BamError error)
AbstractMessageStream
messageError
in interface MessageStream
messageError
in class AbstractMessageStream
to
- the target actor's addressfrom
- the source actor's addressvalue
- the original message payloaderror
- the message errorpublic void query(long id, java.lang.String to, java.lang.String from, java.io.Serializable value)
AbstractMessageStream
query
in interface MessageStream
query
in class AbstractMessageStream
id
- the query identifier used to match requests with responsesto
- the service actor's addressfrom
- the client actor's addressvalue
- the query payloadpublic void queryResult(long id, java.lang.String to, java.lang.String from, java.io.Serializable value)
AbstractMessageStream
queryResult
in interface MessageStream
queryResult
in class AbstractMessageStream
id
- the query identifier used to match requests with responsesto
- the client actor's addressfrom
- the service actor's addressvalue
- the result payloadpublic void queryError(long id, java.lang.String to, java.lang.String from, java.io.Serializable value, BamError error)
AbstractMessageStream
queryError
in interface MessageStream
queryError
in class AbstractMessageStream
id
- the query identifier used to match requests with responsesto
- the client actor's addressfrom
- the service actor's addressvalue
- the result payloaderror
- additional error informationpublic java.lang.String toString()
toString
in class AbstractMessageStream