Package rocks.imsofa.sjl
Class Messenger
java.lang.Object
rocks.imsofa.sjl.Messenger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ActionRequest request, ActionResultCallback callback) send a action command to the sjl busstatic MessengerintgetPort()voidinit(List<ActionCommand> providedActions) voidinit(List<ActionCommand> providedActions, int serverPort) init the messenger create a in-app server and register the port to the serverstatic voidvoidregisterActionCallback(ActionCommand actionCommand, ActionCallback callback) voidshutdown()
-
Constructor Details
-
Messenger
public Messenger()
-
-
Method Details
-
init
- Throws:
Exception
-
init
init the messenger create a in-app server and register the port to the server- Throws:
Exception
-
execute
send a action command to the sjl bus- Parameters:
request-- Throws:
Exception
-
registerActionCallback
-
getInstance
-
getPort
public int getPort() -
shutdown
public void shutdown() -
main
- Throws:
Exception
-