|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.stms.AbstractTransactionConfig
public class AbstractTransactionConfig
Contains the configuration for the AbstractTransaction.
One advantage of this class is that it is a lot easier to add additional fields without having to change all constructors. It also reduces the need for constructors with a lot of arguments.`
| Field Summary | |
|---|---|
boolean |
automaticReadTracking
|
BackoffPolicy |
backoffPolicy
|
PrimitiveClock |
clock
|
java.lang.String |
familyName
|
boolean |
interruptible
|
int |
maxRetryCount
|
boolean |
preventWriteSkew
|
boolean |
readOnly
|
| Constructor Summary | |
|---|---|
AbstractTransactionConfig()
This method should be removed, only used for testing purposes. |
|
AbstractTransactionConfig(PrimitiveClock clock,
BackoffPolicy backoffPolicy,
java.lang.String familyName,
boolean readOnly,
int maxRetryCount,
boolean interruptible,
boolean preventWriteSkew,
boolean automaticReadTracking)
|
|
| Method Summary | |
|---|---|
boolean |
automaticReadTracking()
Checks if this transaction does automaticReadTracking. |
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 |
getMaxRetryCount()
Returns the maximum number of times this Transaction be retried before failing. |
boolean |
isInterruptible()
Checks if the Transaction can be interrupted if it is blocking. |
boolean |
isReadonly()
Checks if this Transaction is readonly. |
boolean |
preventWriteSkew()
Checks if this Transaction should prent writeskew. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final PrimitiveClock clock
public final BackoffPolicy backoffPolicy
public final java.lang.String familyName
public final boolean readOnly
public final int maxRetryCount
public final boolean interruptible
public final boolean preventWriteSkew
public final boolean automaticReadTracking
| Constructor Detail |
|---|
public AbstractTransactionConfig()
public AbstractTransactionConfig(PrimitiveClock clock,
BackoffPolicy backoffPolicy,
java.lang.String familyName,
boolean readOnly,
int maxRetryCount,
boolean interruptible,
boolean preventWriteSkew,
boolean automaticReadTracking)
| Method Detail |
|---|
public java.lang.String getFamilyName()
TransactionConfig
getFamilyName in interface TransactionConfigpublic int getMaxRetryCount()
TransactionConfig
getMaxRetryCount in interface TransactionConfigpublic boolean isInterruptible()
TransactionConfig
isInterruptible in interface TransactionConfigpublic boolean isReadonly()
TransactionConfig
isReadonly in interface TransactionConfigpublic boolean preventWriteSkew()
TransactionConfig
preventWriteSkew in interface TransactionConfigpublic boolean automaticReadTracking()
TransactionConfig
automaticReadTracking in interface TransactionConfigpublic BackoffPolicy getBackoffPolicy()
TransactionConfig
getBackoffPolicy in interface TransactionConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||