|
||||||||||
| 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_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 parametes |
|
| 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, getServiceMethodName, getServiceName, getStatus, 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, getServiceMethodName, getServiceName, getStatus, isSuccess, setException, setStatus |
| Constructor Detail |
|---|
public PendingCall()
public PendingCall(String method)
method - Method name
public PendingCall(String method,
Object[] args)
method - Method nameargs - Parameters
public PendingCall(String name,
String method,
Object[] args)
name - Service namemethod - Method nameargs - Parameters| Method Detail |
|---|
public 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 IPendingServiceCall
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class CallIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class CallIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||