|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.service.Call
org.red5.server.service.PendingCall
public class PendingCall
Pending call is remote call operation that is in pending state. Remote calls to services are asynchronous, that is, after call but before result callback remote calls are in pending state.
Field Summary |
---|
Fields inherited from class org.red5.server.service.Call |
---|
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 Summary | |
---|---|
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 |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.red5.server.service.Call |
---|
getArguments, getException, getReadTime, getServiceMethodName, getServiceName, getStatus, getWriteTime, isSuccess, setArguments, setException, setServiceMethodName, setServiceName, setStatus, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.red5.server.api.service.IServiceCall |
---|
getArguments, getException, getReadTime, getServiceMethodName, getServiceName, getStatus, getWriteTime, isSuccess, setException, setStatus |
Constructor Detail |
---|
public PendingCall()
public PendingCall(String method)
method
- Method namepublic PendingCall(String method, Object[] args)
method
- Method nameargs
- Parameterspublic PendingCall(String name, String method, Object[] args)
name
- Service namemethod
- Method nameargs
- ParametersMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |