1 25 package org.ofbiz.service.engine; 26 27 import java.util.Map ; 28 29 import org.ofbiz.service.GenericRequester; 30 import org.ofbiz.service.GenericServiceException; 31 import org.ofbiz.service.ModelService; 32 33 41 public interface GenericEngine { 42 43 public static final int ASYNC_MODE = 22; 44 public static final int SYNC_MODE = 21; 45 46 55 public Map runSync(String localName, ModelService modelService, Map context) throws GenericServiceException; 56 57 65 public void runSyncIgnore(String localName, ModelService modelService, Map context) throws GenericServiceException; 66 67 77 public void runAsync(String localName, ModelService modelService, Map context, GenericRequester requester, boolean persist) 78 throws GenericServiceException; 79 80 89 public void runAsync(String localName, ModelService modelService, Map context, boolean persist) throws GenericServiceException; 90 91 99 public void sendCallbacks(ModelService modelService, Map context, Object cbObj, int mode) throws GenericServiceException; 100 } 101 102 | Popular Tags |