|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Aspirer<C extends Communication,R>
Brillien represents the probelms of real world as a free communications' flow. Components have 3 roles basically: start, receive communication and alter during communications This interface define all behaviors which belongs to actor part of its roles. Every actor action should be defined in the execution thread dedicated to this component by the Liaison object
Method Summary | |
---|---|
void |
activateCallable()
Activates the callable activity. |
R |
getResult()
Returns the result of the activity if it exists |
boolean |
hasActivity()
Tells whether this Presence has callable activity |
boolean |
isWaitingForInputData()
Tells whether this Aspirer is waiting for input data to be activated. |
boolean |
isWaitingForResponse()
Tells whether this Aspirer is waiting an answer to a redirected get-like message sent earlier. |
void |
passivateCallable()
Passivates the callable activity. |
void |
plan()
After having all input parameters set, this method is called by the instantiation manager instance to make the Aspirer to activate itself |
void |
sendAGet(String to,
String apiVersion,
String message,
String redirectMessage,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
void |
sendDelegatedSet(String to,
String apiVersion,
String message,
String redirectEntityName,
String redirectMessage,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
void |
sendError(C c,
int errorCode,
String message)
Sends an error message to a previously received message. |
void |
sendError(C c,
int errorCode,
String message,
Object value)
Sends an error message to a previously received message. |
void |
sendError(C c,
String message)
Sends an error message to a previously received message. |
C |
sendGet(long timeout,
String to,
String apiVersion,
String message,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
C |
sendGet(String to,
String apiVersion,
String message,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
void |
sendResponse(C c,
Object response)
Sends a response to a previously received message. |
void |
sendSet(String to,
String apiVersion,
String message,
Map<String,Object> parameters)
Sends a set-like message to the given recipient. |
void |
sendUnitAGet(String to,
String apiVersion,
String message,
String redirectMessage,
Map<String,Object> parameters)
Sends a unit-wide get-like message to the given recipient. |
void |
sendUnitDelegatedSet(String to,
String apiVersion,
String message,
String redirectEntityName,
String redirectMessage,
Map<String,Object> parameters)
Sends a unit-wide get-like message to the given recipient. |
C |
sendUnitGet(int timeout,
String to,
String apiVersion,
String message,
Map<String,Object> parameters)
Sends a unit-wide get-like message to the given recipient. |
C |
sendUnitGet(String to,
String apiVersion,
String message,
Map<String,Object> parameters)
Sends a unit-wide get-like message to the given recipient. |
void |
sendUnitSet(String to,
String apiVersion,
String message,
Map<String,Object> parameters)
Sends a unit-wide set-like message to the given recipient. |
Methods inherited from interface java.util.concurrent.Callable |
---|
call |
Method Detail |
---|
void plan() throws BrillienException
BrillienException
boolean isWaitingForInputData()
void activateCallable() throws BrillienException
BrillienException
void passivateCallable() throws BrillienException
BrillienException
boolean hasActivity()
R getResult()
C sendGet(String to, String apiVersion, String message, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textparameters
- parameters of the message
BrillienException
C sendGet(long timeout, String to, String apiVersion, String message, Map<String,Object> parameters) throws BrillienException
timeout
- timout of the waitingto
- name of the recipientmessage
- message textparameters
- parameters of the message
BrillienException
void sendAGet(String to, String apiVersion, String message, String redirectMessage, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textredirectMessage
- parameters
- parameters of the message
BrillienException
void sendDelegatedSet(String to, String apiVersion, String message, String redirectEntityName, String redirectMessage, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textredirectEntityName
- name of the recivient who will be sent the message forredirectMessage
- redirection message nameparameters
- parameters of the message
BrillienException
void sendSet(String to, String apiVersion, String message, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textparameters
- parameters of the message
BrillienException
void sendResponse(C c, Object response) throws BrillienException
c
- previously received messageresponse
- response object
BrillienException
void sendError(C c, String message) throws BrillienException
c
- previously received messagemessage
- error message
BrillienException
void sendError(C c, int errorCode, String message) throws BrillienException
c
- previously received messagemessage
- error message
BrillienException
void sendError(C c, int errorCode, String message, Object value) throws BrillienException
c
- previously received messagemessage
- error message
BrillienException
boolean isWaitingForResponse()
C sendUnitGet(String to, String apiVersion, String message, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textparameters
- parameters of the message
BrillienException
C sendUnitGet(int timeout, String to, String apiVersion, String message, Map<String,Object> parameters) throws BrillienException
timeout
- timout of the waitingto
- name of the recipientmessage
- message textparameters
- parameters of the message
BrillienException
void sendUnitAGet(String to, String apiVersion, String message, String redirectMessage, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textredirectMessage
- parameters
- parameters of the message
BrillienException
void sendUnitDelegatedSet(String to, String apiVersion, String message, String redirectEntityName, String redirectMessage, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textredirectEntityName
- name of the recivient who will be sent the message forredirectMessage
- redirection message nameparameters
- parameters of the message
BrillienException
void sendUnitSet(String to, String apiVersion, String message, Map<String,Object> parameters) throws BrillienException
to
- name of the recipientmessage
- message textparameters
- parameters of the message
BrillienException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |