Package org.apache.ofbiz.service.engine
Class RouteEngine
java.lang.Object
org.apache.ofbiz.service.engine.AbstractEngine
org.apache.ofbiz.service.engine.GenericAsyncEngine
org.apache.ofbiz.service.engine.RouteEngine
- All Implemented Interfaces:
GenericEngine
RouteEngine.java
-
Field Summary
Fields inherited from interface org.apache.ofbiz.service.engine.GenericEngine
ASYNC_MODE, SYNC_MODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRun the service synchronously and return the result.void
runSyncIgnore
(String localName, ModelService modelService, Map<String, Object> context) Run the service synchronously and IGNORE the result.void
sendCallbacks
(ModelService modelService, Map<String, Object> context, int mode) Send the service callbacksvoid
sendCallbacks
(ModelService modelService, Map<String, Object> context, Throwable t, int mode) void
sendCallbacks
(ModelService modelService, Map<String, Object> context, Map<String, Object> result, int mode) Methods inherited from class org.apache.ofbiz.service.engine.GenericAsyncEngine
allowCallbacks, runAsync, runAsync
Methods inherited from class org.apache.ofbiz.service.engine.AbstractEngine
createLocationMap, getDispatcher, getLocation
-
Constructor Details
-
RouteEngine
-
-
Method Details
-
runSync
public Map<String,Object> runSync(String localName, ModelService modelService, Map<String, Object> context) throws GenericServiceExceptionDescription copied from interface:GenericEngine
Run the service synchronously and return the result.- Specified by:
runSync
in interfaceGenericEngine
- Specified by:
runSync
in classGenericAsyncEngine
- Parameters:
localName
- Name of the LocalDispatcher.modelService
- Service model object.context
- Map of name, value pairs composing the context.- Returns:
- Map of name, value pairs composing the result.
- Throws:
GenericServiceException
- See Also:
-
runSyncIgnore
public void runSyncIgnore(String localName, ModelService modelService, Map<String, Object> context) throws GenericServiceExceptionDescription copied from interface:GenericEngine
Run the service synchronously and IGNORE the result.- Specified by:
runSyncIgnore
in interfaceGenericEngine
- Specified by:
runSyncIgnore
in classGenericAsyncEngine
- Parameters:
localName
- Name of the LocalDispatcher.modelService
- Service model object.context
- Map of name, value pairs composing the context.- Throws:
GenericServiceException
- See Also:
-
sendCallbacks
public void sendCallbacks(ModelService modelService, Map<String, Object> context, int mode) throws GenericServiceExceptionDescription copied from interface:GenericEngine
Send the service callbacks- Specified by:
sendCallbacks
in interfaceGenericEngine
- Overrides:
sendCallbacks
in classAbstractEngine
- Parameters:
modelService
- Service model objectcontext
- Map of name, value pairs composing the contextmode
- Service mode (sync or async)- Throws:
GenericServiceException
-
sendCallbacks
public void sendCallbacks(ModelService modelService, Map<String, Object> context, Map<String, throws GenericServiceExceptionObject> result, int mode) - Specified by:
sendCallbacks
in interfaceGenericEngine
- Overrides:
sendCallbacks
in classAbstractEngine
- Throws:
GenericServiceException
-
sendCallbacks
public void sendCallbacks(ModelService modelService, Map<String, Object> context, Throwable t, int mode) throws GenericServiceException- Specified by:
sendCallbacks
in interfaceGenericEngine
- Overrides:
sendCallbacks
in classAbstractEngine
- Throws:
GenericServiceException
-