R
- the return type of the called functionpublic abstract class AbstractCall<R> extends java.lang.Object implements Call<R>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
function |
private java.lang.String |
functionName |
private java.lang.String |
moduleName |
private com.google.gson.reflect.TypeToken<R> |
returnType |
Constructor and Description |
---|
AbstractCall(java.lang.String function,
com.google.gson.reflect.TypeToken<R> returnType)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
getFunction()
Return the function string containing module and function name (e.g.
|
java.lang.String |
getFunctionName()
Return just the function name (e.g.
|
java.lang.String |
getModuleName()
Return the module name.
|
com.google.gson.reflect.TypeToken<R> |
getReturnType()
Return the return type of this call.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPayload
private final java.lang.String moduleName
private final java.lang.String functionName
private final java.lang.String function
private final com.google.gson.reflect.TypeToken<R> returnType
AbstractCall(java.lang.String function, com.google.gson.reflect.TypeToken<R> returnType)
function
- string containing module and function name (e.g. "test.ping")returnType
- the return type of this calljava.lang.String getFunction()
public com.google.gson.reflect.TypeToken<R> getReturnType()
public java.lang.String getModuleName()
public java.lang.String getFunctionName()