|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionConfiguration
Contains the transaction configuration used by a Transaction. In the beginning this was all
placed in the Transaction, adding a lot of 'informational' methods to the transaction and therefor
complicating its usage. So all the configurational properties of the transaction are contained in
this structure.
| Method Summary | |
|---|---|
BackoffPolicy |
getBackoffPolicy()
Returns the BackoffPolicy used by the Stm when a transaction conflicts with another transaction. |
java.lang.String |
getFamilyName()
Returns the family name of this Transaction. |
int |
getMaxRetries()
Returns the maximum number of times this Transaction be retried before failing. |
PropagationLevel |
getPropagationLevel()
Returns the PropagationLevel. |
long |
getTimeoutNs()
Returns the total timeout in nanoseconds. |
TraceLevel |
getTraceLevel()
Returns the TraceLevel |
boolean |
isExplicitRetryAllowed()
If an explicit retry (so a blocking transaction) is allowed. |
boolean |
isInterruptible()
Checks if the Transaction can be interrupted if it is blocking. |
boolean |
isReadonly()
Checks if this Transaction is readonly. |
boolean |
isReadTrackingEnabled()
Checks if this transaction does automatic read tracking. |
boolean |
isWriteSkewAllowed()
Checks if this Transaction allows writeskew. |
int |
maxReadSpinCount()
Returns the maximum number of times the transaction is allowed to spin on a read to become readable (perhaps it is locked). |
| Method Detail |
|---|
PropagationLevel getPropagationLevel()
TraceLevel getTraceLevel()
BackoffPolicy getBackoffPolicy()
TransactionFactoryBuilder.setBackoffPolicy(BackoffPolicy)java.lang.String getFamilyName()
TransactionFactoryBuilder.setFamilyName(String)int getMaxRetries()
TransactionFactoryBuilder.setMaxRetries(int)long getTimeoutNs()
TransactionFactoryBuilder.setTimeoutNs(long)boolean isExplicitRetryAllowed()
TransactionFactoryBuilder.setExplicitRetryAllowed(boolean)boolean isInterruptible()
TransactionFactoryBuilder.setInterruptible(boolean)boolean isReadonly()
TransactionFactoryBuilder.setReadonly(boolean)boolean isReadTrackingEnabled()
TransactionFactoryBuilder.setReadTrackingEnabled(boolean)boolean isWriteSkewAllowed()
TransactionFactoryBuilder.setWriteSkewAllowed(boolean)int maxReadSpinCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||