|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDirectServer
The IDirectServer
interface defines a way to handle callbacks direct without
callback-ID mapping. It's an extension of IServer
because an IServer
implementation
is usable via EJB. This extension is only needed if the server and the client runs in the
same VM.
Method Summary | |
---|---|
void |
afterLastCall(java.lang.Object pSessionId,
boolean pCallError)
Notifies the server that all calls were executed. |
void |
beforeFirstCall(java.lang.Object pSessionId)
Notifies the server that at least one call will follow. |
void |
executeActionCallBack(java.lang.Object pSessionId,
ICallBackListener pCallBackListener,
java.lang.String pAction,
java.lang.Object... pParams)
Executes an asynchronous action call. |
void |
executeCallBack(java.lang.Object pSessionId,
ICallBackListener pCallBackListener,
java.lang.String pObjectName,
java.lang.String pMethod,
java.lang.Object... pParams)
Executes an asynchronous method call. |
Methods inherited from interface javax.rad.server.IServer |
---|
createSession, createSubSession, destroySession, execute, executeAction, executeActionCallBack, executeCallBack, getCallBackResults, getObjectProvider, getProperties, getProperty, getSessionManager, setAndCheckAlive, setNewPassword, setProperty |
Methods inherited from interface javax.rad.server.push.IPushHandler |
---|
push, registerPushReceiver, unregisterPushReceiver |
Method Detail |
---|
void executeCallBack(java.lang.Object pSessionId, ICallBackListener pCallBackListener, java.lang.String pObjectName, java.lang.String pMethod, java.lang.Object... pParams) throws java.lang.Throwable
pSessionId
- session identifierpCallBackListener
- the callback listenerpObjectName
- server object name/aliaspMethod
- method name which should be calledpParams
- parameters for the method call
java.lang.Throwable
- if an error occurs during executionvoid executeActionCallBack(java.lang.Object pSessionId, ICallBackListener pCallBackListener, java.lang.String pAction, java.lang.Object... pParams) throws java.lang.Throwable
pSessionId
- session identifierpCallBackListener
- the callback listenerpAction
- action which should be calledpParams
- parameters for the action call
java.lang.Throwable
- if an error occurs during executionvoid beforeFirstCall(java.lang.Object pSessionId)
pSessionId
- the session id which will execute at least one callvoid afterLastCall(java.lang.Object pSessionId, boolean pCallError)
pSessionId
- the session id which executed at least one callpCallError
- true
if at least one call throwed an exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |