View Javadoc

1   package com.atlassian.vcache.internal.core;
2   
3   /**
4    * Interface for controlling the transaction characteristics of an entity.
5    *
6    * @since 1.0
7    */
8   public interface TransactionControl {
9       /**
10       * Synchronize any changes.
11       */
12      void transactionSync();
13  
14      /**
15       * Discard any changes.
16       * @return whether any changes were discarded.
17       */
18      boolean transactionDiscard();
19  }