MethodCallback Interface
public interface MethodCallback
The callback to be executed each time a direct method is invoked on this client.
Method Summary
Modifier and Type | Method and Description |
---|---|
Direct |
onMethodInvoked(String methodName, DirectMethodPayload methodPayload, Object context)
The |
Method Details
onMethodInvoked
public DirectMethodResponse onMethodInvoked(String methodName, DirectMethodPayload methodPayload, Object context)
The
Parameters:
methodName
- The name of the method being invoked.
methodPayload
- The payload of the method being invoked. May be null
context
- The context set when subscribing to direct methods. Will be null if no context was set when subscribing.
Returns:
The direct method response to deliver to the process that invoked this method. May not be null.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java