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 parametes
|
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getArguments, getException, getReadTime, getServiceMethodName, getServiceName, getStatus, getWriteTime, isSuccess, setException, setStatus
public PendingCall()
public PendingCall(String method)
method
- Method namepublic PendingCall(String method, Object[] args)
method
- Method nameargs
- Parameterspublic Object getResult()
getResult
in interface IPendingServiceCall
public void setResult(Object result)
setResult
in interface IPendingServiceCall
result
- Value to set for property 'result'.public void registerCallback(IPendingServiceCallback callback)
registerCallback
in interface IPendingServiceCall
callback
- Callback objectpublic void unregisterCallback(IPendingServiceCallback callback)
unregisterCallback
in interface IPendingServiceCall
callback
- Callback objectpublic Set<IPendingServiceCallback> getCallbacks()
getCallbacks
in interface IPendingServiceCall
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Call
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Call
IOException
Copyright © 2006-2012 The Red5 Project