@Override public boolean remove(Serializable key) throws RemoteException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.remove(key); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public void removeAll() throws RemoteException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { super.removeAll(); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public Element getQuiet(Serializable key) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getQuiet(key); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public void put(Element element) throws RemoteException, IllegalArgumentException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { super.put(element); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public List getKeys() throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getKeys(); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public List getElements(List keys) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getElements(keys); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public void send(List eventMessages) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { super.send(eventMessages); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } } }
@Override public List getElements(List keys) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getElements(keys); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public List getKeys() throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getKeys(); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public boolean remove(Serializable key) throws RemoteException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.remove(key); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public Element getQuiet(Serializable key) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getQuiet(key); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public List getKeys() throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getKeys(); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public void put(Element element) throws RemoteException, IllegalArgumentException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { super.put(element); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public boolean remove(Serializable key) throws RemoteException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.remove(key); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public boolean remove(Serializable key) throws RemoteException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.remove(key); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public void send(List eventMessages) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { super.send(eventMessages); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } } }
@Override public Element getQuiet(Serializable key) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getQuiet(key); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public void put(Element element) throws RemoteException, IllegalArgumentException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { super.put(element); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public List getElements(List keys) throws RemoteException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { return super.getElements(keys); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }
@Override public void put(Element element) throws RemoteException, IllegalArgumentException, IllegalStateException { boolean started = CacheTransactionHelper.isTransactionStarted(cache); if (!started) { CacheTransactionHelper.beginTransactionIfNeeded(cache); } try { super.put(element); } finally { if (!started) { CacheTransactionHelper.commitTransactionIfNeeded(cache); } } }