public class PendingCall extends Call implements IPendingServiceCall
arguments, exception, serviceMethodName, serviceName, status, STATUS_ACCESS_DENIED, STATUS_APP_SHUTTING_DOWN, STATUS_GENERAL_EXCEPTION, STATUS_INVOCATION_EXCEPTION, STATUS_METHOD_NOT_FOUND, STATUS_NOT_CONNECTED, STATUS_PENDING, STATUS_SERVICE_NOT_FOUND, STATUS_SUCCESS_NULL, STATUS_SUCCESS_RESULT, STATUS_SUCCESS_VOID| Constructor and Description |
|---|
PendingCall() |
PendingCall(String method)
Creates pending call with given method name
|
PendingCall(String method,
Object[] args)
Creates pending call with given method name and array of parameters
|
PendingCall(String name,
String method,
Object[] args)
Creates pending call with given method name, service name and array of parameters
|
| Modifier and Type | Method and Description |
|---|---|
Set<IPendingServiceCallback> |
getCallbacks()
Returns list of callback objects, usually callback object represented as an anonymous class instance that implements IPendingServiceCallback interface.
|
Object |
getResult()
Returns service call result
|
void |
readExternal(ObjectInput in) |
void |
registerCallback(IPendingServiceCallback callback)
Registers callback object usually represented as an anonymous class instance that implements IPendingServiceCallback interface.
|
void |
setResult(Object result)
Setter for property 'result'.
|
void |
unregisterCallback(IPendingServiceCallback callback)
Unregisters callback object usually represented as an anonymous class instance that implements IPendingServiceCallback interface.
|
void |
writeExternal(ObjectOutput out) |
getArguments, getException, getReadTime, getServiceMethodName, getServiceName, getStatus, getWriteTime, isSuccess, setArguments, setException, setServiceMethodName, setServiceName, setStatus, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetArguments, getException, getReadTime, getServiceMethodName, getServiceName, getStatus, getWriteTime, isSuccess, setException, setStatuspublic PendingCall()
public PendingCall(String method)
method - Method namepublic PendingCall(String method, Object[] args)
method - Method nameargs - Parameterspublic Object getResult()
getResult in interface IPendingServiceCallpublic void setResult(Object result)
setResult in interface IPendingServiceCallresult - Value to set for property 'result'.public void registerCallback(IPendingServiceCallback callback)
registerCallback in interface IPendingServiceCallcallback - Callback objectpublic void unregisterCallback(IPendingServiceCallback callback)
unregisterCallback in interface IPendingServiceCallcallback - Callback objectpublic Set<IPendingServiceCallback> getCallbacks()
getCallbacks in interface IPendingServiceCallpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class CallIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class CallIOExceptionCopyright © 2005–2017 Red5. All rights reserved.