|
||||||||||
| 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(Object pSessionId,
boolean pCallError)
Notifies the server that all calls were executed. |
void |
beforeFirstCall(Object pSessionId)
Notifies the server that at least one call will follow. |
void |
executeActionCallBack(Object pSessionId,
ICallBackListener pCallBackListener,
String pAction,
Object... pParams)
Executes an asynchronous action call. |
void |
executeCallBack(Object pSessionId,
ICallBackListener pCallBackListener,
String pObjectName,
String pMethod,
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(Object pSessionId,
ICallBackListener pCallBackListener,
String pObjectName,
String pMethod,
Object... pParams)
throws Throwable
pSessionId - session identifierpCallBackListener - the callback listenerpObjectName - server object name/aliaspMethod - method name which should be calledpParams - parameters for the method call
Throwable - if an error occurs during execution
void executeActionCallBack(Object pSessionId,
ICallBackListener pCallBackListener,
String pAction,
Object... pParams)
throws Throwable
pSessionId - session identifierpCallBackListener - the callback listenerpAction - action which should be calledpParams - parameters for the action call
Throwable - if an error occurs during executionvoid beforeFirstCall(Object pSessionId)
pSessionId - the session id which will execute at least one call
void afterLastCall(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 | |||||||||