Class BHive.TransactedOperation<T>

java.lang.Object
io.bdeploy.bhive.BHive.Operation<T>
io.bdeploy.bhive.BHive.TransactedOperation<T>
All Implemented Interfaces:
BHiveExecution, Callable<T>
Direct Known Subclasses:
ImportFileOperation, ImportObjectOperation, ImportOperation, ImportTreeOperation, InsertArtificialTreeOperation, InsertExistingObjectsOperation, InsertManifestRefOperation, ObjectReadOperation, TransactedRemoteOperation
Enclosing class:
BHive

public abstract static class BHive.TransactedOperation<T> extends BHive.Operation<T>
Base class for operations which require an open transaction, set up by the caller.
  • Constructor Details

    • TransactedOperation

      public TransactedOperation()
  • Method Details

    • call

      public final T call() throws Exception
      Throws:
      Exception
    • callTransacted

      protected abstract T callTransacted() throws Exception
      Executes the operation. The current thread is guaranteed to be associated with a transaction.
      Throws:
      Exception