interface ClientActor
Modifier and Type | Method and Description |
---|---|
void |
receiveCall(java.lang.String privateKey,
java.lang.String senderId,
java.lang.String msgId,
java.util.Map msg)
Receives a message for which a response is required.
|
void |
receiveNotification(java.lang.String privateKey,
java.lang.String senderId,
java.util.Map msg)
Receives a message for which no response is required.
|
void |
receiveResponse(java.lang.String privateKey,
java.lang.String responderId,
java.lang.String msgTag,
java.util.Map response)
Receives a response to a message previously sent by this client.
|
void receiveNotification(java.lang.String privateKey, java.lang.String senderId, java.util.Map msg) throws java.lang.Exception
privateKey
- private key for hub-client communicationsenderId
- public ID of sending clientmsg
- messagejava.lang.Exception
void receiveCall(java.lang.String privateKey, java.lang.String senderId, java.lang.String msgId, java.util.Map msg) throws java.lang.Exception
reply
method at some future point.privateKey
- private key for hub-client communicationsenderId
- public ID of sending clientmsgId
- message identifier for later use with replymsg
- messagejava.lang.Exception
void receiveResponse(java.lang.String privateKey, java.lang.String responderId, java.lang.String msgTag, java.util.Map response) throws java.lang.Exception
privateKey
- private key for hub-client communicationresponderId
- public ID of responding clientmsgTag
- client-defined tag labelling previously-sent messageresponse
- returned response objectjava.lang.Exception