@Test public void shouldReturnResultOfDelegate() throws Exception { assertEquals(wrappingTask.execute(transaction), "result"); }
@Override public T execute(Transaction transaction) throws E { try { return delegate.execute(transaction); } catch (Exception ex) { if (shouldRethrowWithoutLockValidation(ex) || immutableTsLockIsValid()) { throw ex; } throw new TransactionLockTimeoutException( "The following immutable timestamp lock is no longer valid: " + immutableTsLock); } }
LockCheckingTransactionTask implements TransactionTask<T, E> { @Override public T execute(Transaction transaction) throws E { try { return delegate.execute(transaction); } catch (Exception ex) { if (shouldRethrowWithoutLockValidation(ex) || immutableTsLockIsValid()) { throw ex; } throw new TransactionLockTimeoutException( "The following immutable timestamp lock is no longer valid: " + immutableTsLock); } } }
LockCheckingTransactionTask implements TransactionTask<T, E> { @Override public T execute(Transaction transaction) throws E { try { return delegate.execute(transaction); } catch (Exception ex) { if (shouldRethrowWithoutLockValidation(ex) || immutableTsLockIsValid()) { throw ex; } throw new TransactionLockTimeoutException( "The following immutable timestamp lock is no longer valid: " + immutableTsLock); } } LockCheckingTransactionTask(TransactionTask<T, E> delegate,
            TimelockService timelockService,
            LockToken immutableTsLock); }
LockCheckingTransactionTask implements TransactionTask<T, E> { @Override public T execute(Transaction transaction) throws E { try { return delegate.execute(transaction); } catch (Exception ex) { if (shouldRethrowWithoutLockValidation(ex) || immutableTsLockIsValid()) { throw ex; } throw new TransactionLockTimeoutException( "The following immutable timestamp lock is no longer valid: " + immutableTsLock); } } LockCheckingTransactionTask(TransactionTask<T, E> delegate,
            TimelockService timelockService,
            LockToken immutableTsLock); @Override T execute(Transaction transaction); }
LockCheckingTransactionTask implements TransactionTask<T, E> { @Override public T execute(Transaction transaction) throws E { try { return delegate.execute(transaction); } catch (Exception ex) { if (shouldRethrowWithoutLockValidation(ex) || immutableTsLockIsValid()) { throw ex; } throw new TransactionLockTimeoutException( "The following immutable timestamp lock is no longer valid: " + immutableTsLock); } } LockCheckingTransactionTask(TransactionTask<T, E> delegate,
            TimelockService timelockService,
            LockToken immutableTsLock); @Override T execute(Transaction transaction);  }