public interface TransactionRetryStrategy<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
TransactionRetryStrategy.AbstractRetryStrategy<T>
Base class for strategy that require a retry.
|
static class |
TransactionRetryStrategy.DelayedRetry<T>
Executes the work with a number of retries and with a number of milliseconds delay between each try.
|
static class |
TransactionRetryStrategy.ExponentialBackoff<T>
Executes the work with a number of retries and with a exponentially increasing number of milliseconds
between each retry.
|
static class |
TransactionRetryStrategy.FireAndForget<T>
Executes the work committing if possible and rolling back on failure.
|
static class |
TransactionRetryStrategy.OneAndDone<T>
Executes the work committing if possible and rolling back on failure.
|
| Modifier and Type | Method and Description |
|---|---|
T |
execute(TransactionalGraph graph,
TransactionWork<T> work)
Executes the TransactionWork with a give strategy.
|
T execute(TransactionalGraph graph, TransactionWork<T> work)
graph - The TransactionalGraph to mutate.work - The work to do on the Graph.Copyright © 2010-2014. All Rights Reserved.