/** * This implementation simply calls the underlying storage's * storeWorkItem() method. */ public void put (final InFlowWorkItem wi) throws StoreException { getStorage().storeWorkItem(getStoreName(), wi); }
/** * Saves a workitem. */ public void save (final InFlowWorkItem wi) throws WorkListException { getStorage().storeWorkItem(this.listName, (InFlowWorkItem)wi.clone()); }
/** * Inserts a workitem into the storage for given store. */ public void storeWorkItem (final String storeName, final InFlowWorkItem wi) throws StoreException { if (log.isDebugEnabled()) log.debug("storeWorkItem() '"+storeName+"' "+wi.getId()); // // store in cache getWorkitemCache(storeName).cacheWorkitem(wi); // // store in the real storage getCachedStorage().storeWorkItem(storeName, wi); }
getStorage().storeWorkItem(getStoreName(), wi);
getStorage().storeWorkItem(this.slaveStoreName, wi); getStorage().storeWorkItem(getStoreName(), masterWi);
/** * Checks wether the incoming workitem is correlated (slave or master) or * not correlated at all, then takes the appropriate action. */ public void put (final InFlowWorkItem wi) throws StoreException { final String cId = wi.getAttributes().sget(CORRELATION_ID); if (cId != null) { //log.debug("put() wi with correlationId (set to >"+cId+"<)"); final String cField = wi.getAttributes().sget(CORRELATION_FIELD); synchronized (this) { if (cField != null) receiveSlave(cId, cField, wi); else receiveMaster(cId, wi); } return; } // // no correlation, behaving like a regular put strategy... getStorage().storeWorkItem(getStoreName(), wi); }