Class FatGammaTxnExecutor

java.lang.Object
org.multiverse.stms.gamma.AbstractGammaTxnExecutor
org.multiverse.stms.gamma.FatGammaTxnExecutor
All Implemented Interfaces:
TxnExecutor, MultiverseConstants, GammaTxnExecutor

public final class FatGammaTxnExecutor extends AbstractGammaTxnExecutor
The TxnExecutor made for the GammaStm. This code is generated.
  • Field Details

    • logger

      private static final Logger logger
    • propagationLevel

      private final PropagationLevel propagationLevel
  • Constructor Details

    • FatGammaTxnExecutor

      public FatGammaTxnExecutor(GammaTxnFactory txnFactory)
  • Method Details

    • execute

      public void execute(Runnable runnable)
    • execute

      public <E> E execute(Callable<E> callable)
    • executeChecked

      public <E> E executeChecked(Callable<E> callable) throws Exception
      Throws:
      Exception
    • getTxnFactory

      public GammaTxnFactory getTxnFactory()
      Description copied from interface: TxnExecutor
      Returns the TxnFactory that is used by this TxnExecutor to create transactions used to execute transactional closures.
      Returns:
      the TxnFactory used by this TxnExecutor.
    • executeChecked

      public final <E> E executeChecked(TxnCallable<E> callable) throws Exception
      Description copied from interface: TxnExecutor
      Executes the callable.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
      Throws:
      NullPointerException - if callable is null.
      Exception - if the execute call fails.
    • execute

      public <E> E execute(TxnCallable<E> callable)
      Description copied from interface: TxnExecutor
      Executes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
    • execute

      private <E> E execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnCallable<E> callable) throws Exception
      Throws:
      Exception
    • executeChecked

      public final int executeChecked(TxnIntCallable callable) throws Exception
      Description copied from interface: TxnExecutor
      Executes the callable.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
      Throws:
      NullPointerException - if callable is null.
      Exception - if the execute call fails.
    • execute

      public int execute(TxnIntCallable callable)
      Description copied from interface: TxnExecutor
      Executes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
    • execute

      private int execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnIntCallable callable) throws Exception
      Throws:
      Exception
    • executeChecked

      public final long executeChecked(TxnLongCallable callable) throws Exception
      Description copied from interface: TxnExecutor
      Executes the callable.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
      Throws:
      NullPointerException - if callable is null.
      Exception - if the execute call fails.
    • execute

      public long execute(TxnLongCallable callable)
      Description copied from interface: TxnExecutor
      Executes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
    • execute

      private long execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnLongCallable callable) throws Exception
      Throws:
      Exception
    • executeChecked

      public final double executeChecked(TxnDoubleCallable callable) throws Exception
      Description copied from interface: TxnExecutor
      Executes the callable.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
      Throws:
      NullPointerException - if callable is null.
      Exception - if the execute call fails.
    • execute

      public double execute(TxnDoubleCallable callable)
      Description copied from interface: TxnExecutor
      Executes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
    • execute

      private double execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnDoubleCallable callable) throws Exception
      Throws:
      Exception
    • executeChecked

      public final boolean executeChecked(TxnBooleanCallable callable) throws Exception
      Description copied from interface: TxnExecutor
      Executes the callable.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
      Throws:
      NullPointerException - if callable is null.
      Exception - if the execute call fails.
    • execute

      public boolean execute(TxnBooleanCallable callable)
      Description copied from interface: TxnExecutor
      Executes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.
      Parameters:
      callable - the callable to execute.
      Returns:
      the result of the execution.
    • execute

      private boolean execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnBooleanCallable callable) throws Exception
      Throws:
      Exception
    • executeChecked

      public final void executeChecked(TxnVoidCallable callable) throws Exception
      Description copied from interface: TxnExecutor
      Executes the callable.
      Parameters:
      callable - the callable to execute.
      Throws:
      NullPointerException - if callable is null.
      Exception - if the execute call fails.
    • execute

      public void execute(TxnVoidCallable callable)
      Description copied from interface: TxnExecutor
      Executes the transactional callable. If in the execution of the callable a checked exception is thrown, the exception is wrapped in a InvisibleCheckedException. The original exception can be retrieved by calling the getCause method.
      Parameters:
      callable - the callable to execute.
    • execute

      private void execute(GammaTxn tx, TxnThreadLocal.Container transactionContainer, GammaTxnPool pool, TxnVoidCallable callable) throws Exception
      Throws:
      Exception