|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GenericEngine
Generic Engine Interface
Field Summary | |
---|---|
static int |
ASYNC_MODE
|
static int |
SYNC_MODE
|
Method Summary | |
---|---|
void |
runAsync(java.lang.String localName,
ModelService modelService,
java.util.Map<java.lang.String,java.lang.Object> context,
boolean persist)
Run the service asynchronously and IGNORE the result. |
void |
runAsync(java.lang.String localName,
ModelService modelService,
java.util.Map<java.lang.String,java.lang.Object> context,
GenericRequester requester,
boolean persist)
Run the service asynchronously, passing an instance of GenericRequester that will receive the result. |
java.util.Map<java.lang.String,java.lang.Object> |
runSync(java.lang.String localName,
ModelService modelService,
java.util.Map<java.lang.String,java.lang.Object> context)
Run the service synchronously and return the result. |
void |
runSyncIgnore(java.lang.String localName,
ModelService modelService,
java.util.Map<java.lang.String,java.lang.Object> context)
Run the service synchronously and IGNORE the result. |
void |
sendCallbacks(ModelService modelService,
java.util.Map<java.lang.String,java.lang.Object> context,
int mode)
Send the service callbacks |
void |
sendCallbacks(ModelService modelService,
java.util.Map<java.lang.String,java.lang.Object> context,
java.util.Map<java.lang.String,java.lang.Object> result,
int mode)
|
void |
sendCallbacks(ModelService modelService,
java.util.Map<java.lang.String,java.lang.Object> context,
java.lang.Throwable t,
int mode)
|
Field Detail |
---|
static final int ASYNC_MODE
static final int SYNC_MODE
Method Detail |
---|
java.util.Map<java.lang.String,java.lang.Object> runSync(java.lang.String localName, ModelService modelService, java.util.Map<java.lang.String,java.lang.Object> context) throws GenericServiceException
localName
- Name of the LocalDispatcher.modelService
- Service model object.context
- Map of name, value pairs composing the context.
GenericServiceException
void runSyncIgnore(java.lang.String localName, ModelService modelService, java.util.Map<java.lang.String,java.lang.Object> context) throws GenericServiceException
localName
- Name of the LocalDispatcher.modelService
- Service model object.context
- Map of name, value pairs composing the context.
GenericServiceException
void runAsync(java.lang.String localName, ModelService modelService, java.util.Map<java.lang.String,java.lang.Object> context, GenericRequester requester, boolean persist) throws GenericServiceException
localName
- Name of the LocalDispatcher.modelService
- Service model object.context
- Map of name, value pairs composing the context.requester
- Object implementing GenericRequester interface which will receive the result.persist
- True for store/run; False for run.
GenericServiceException
void runAsync(java.lang.String localName, ModelService modelService, java.util.Map<java.lang.String,java.lang.Object> context, boolean persist) throws GenericServiceException
localName
- Name of the LocalDispatcher.modelService
- Service model object.context
- Map of name, value pairs composing the context.persist
- True for store/run; False for run.
GenericServiceException
void sendCallbacks(ModelService modelService, java.util.Map<java.lang.String,java.lang.Object> context, int mode) throws GenericServiceException
modelService
- Service model objectcontext
- Map of name, value pairs composing the contextcbObj
- Object to return to callback (Throwable or Map)mode
- Service mode (sync or async)
GenericServiceException
void sendCallbacks(ModelService modelService, java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.String,java.lang.Object> result, int mode) throws GenericServiceException
GenericServiceException
void sendCallbacks(ModelService modelService, java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Throwable t, int mode) throws GenericServiceException
GenericServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |