Package com.cetsoft.imcache.cache.heap.tx

Examples of com.cetsoft.imcache.cache.heap.tx.TransactionException


     */
    public void apply() {
      try {
        committer.doPut(key, value);
      } catch (Exception exception) {
        throw new TransactionException(exception);
      }
    }
View Full Code Here


   * Put fail.
   */
  @Test
  public void putFail() {
    doReturn("1").when(cache.cache).get(1);
    doThrow(new TransactionException(new Exception())).when(committer).doPut(any(), any());
    CacheTransaction.get().begin();
    try {
      cache.put(1, "2");
      CacheTransaction.get().commit();
    } catch (TransactionException exception) {
View Full Code Here

     */
    public void apply() {
      try{
        committer.doPut(key, value);
      }catch(Exception exception){
        throw new TransactionException(exception);
      }
    }
View Full Code Here

TOP

Related Classes of com.cetsoft.imcache.cache.heap.tx.TransactionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.