MethodRequest Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. edge. MethodRequest
- com.
public class MethodRequest
Json parser for a method request. Used to invoke methods on other devices/modules
Constructor Summary
Constructor | Description |
---|---|
MethodRequest(String methodName, String payload) |
Constructor for a Method |
MethodRequest(String methodName, String payload, Integer responseTimeout, Integer connectionTimeout) |
Constructor for a Method |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJson()
Return the json representation of this object |
Methods inherited from java.lang.Object
Constructor Details
MethodRequest
public MethodRequest(String methodName, String payload)
Constructor for a MethodRequest. Uses default responseTimeout and connectionTimeout which is to never timeout
Parameters:
Throws:
MethodRequest
public MethodRequest(String methodName, String payload, Integer responseTimeout, Integer connectionTimeout)
Constructor for a MethodRequest.
Parameters:
Throws:
Method Details
toJson
public String toJson()
Return the json representation of this object
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for