MethodRequest 构造函数

定义

重载

MethodRequest(String methodName, String payload)

Constructor for a MethodRequest. Uses default responseTimeout and connectionTimeout which is to never timeout

MethodRequest(String methodName, String payload, Integer responseTimeout, Integer connectionTimeout)

Constructor for a MethodRequest.

MethodRequest(String methodName, String payload)

Constructor for a MethodRequest. Uses default responseTimeout and connectionTimeout which is to never timeout

public MethodRequest(String methodName, String payload)

参数

methodName
String

The method to be invoked

payload
String

the payload attached to that method

例外

IllegalArgumentException

if the provided methodName is null or empty

MethodRequest(String methodName, String payload, Integer responseTimeout, Integer connectionTimeout)

Constructor for a MethodRequest.

public MethodRequest(String methodName, String payload, Integer responseTimeout, Integer connectionTimeout)

参数

methodName
String

The method to be invoked

payload
String

the payload attached to that method

responseTimeout
Integer

the timeout in seconds for the response to be received

connectionTimeout
Integer

the timeout in seconds for the connection to be established

例外

IllegalArgumentException

if the provided methodName is null or empty

适用于