@Deprecated
public class TransactionTrier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Function0<Account> |
accountProvider
Deprecated.
|
protected java.lang.Runnable |
chainIdSynchronizer
Deprecated.
|
protected org.slf4j.Logger |
logger
Deprecated.
|
protected java.lang.Runnable |
nonceSynchronizer
Deprecated.
|
protected TryCountAndInterval |
tryCountAndInterval
Deprecated.
|
Constructor and Description |
---|
TransactionTrier(TryCountAndInterval tryCountAndInterval)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isChainIdHashException(java.lang.Exception e)
Deprecated.
|
protected boolean |
isNonceRelatedException(java.lang.Exception e)
Deprecated.
|
TxHash |
request(Function0<TxHash> firstTrier,
Function1<java.lang.Long,TxHash> transactionRequester)
Deprecated.
Try transaction request with a requester along with first trier.
|
TxHash |
request(Function1<java.lang.Long,TxHash> transactionRequester)
Deprecated.
Try transaction request with a requester.
|
protected final org.slf4j.Logger logger
protected final TryCountAndInterval tryCountAndInterval
protected java.lang.Runnable nonceSynchronizer
protected java.lang.Runnable chainIdSynchronizer
public TransactionTrier(TryCountAndInterval tryCountAndInterval)
public TxHash request(Function1<java.lang.Long,TxHash> transactionRequester)
transactionRequester
fails, retry after
refreshing nonce.transactionRequester
- a transaction requesterpublic TxHash request(Function0<TxHash> firstTrier, Function1<java.lang.Long,TxHash> transactionRequester)
transactionRequester
is invoked when firstTrier
has failed. If transactionRequester
fails, retry
after refreshing nonce.firstTrier
- a first triertransactionRequester
- a transaction requesterprotected boolean isNonceRelatedException(java.lang.Exception e)
protected boolean isChainIdHashException(java.lang.Exception e)