org.multiverse.stms.alpha
Class AlphaStm.AlphaTransactionFactoryBuilder

java.lang.Object
  extended by org.multiverse.stms.alpha.AlphaStm.AlphaTransactionFactoryBuilder
All Implemented Interfaces:
org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>
Enclosing class:
AlphaStm

public class AlphaStm.AlphaTransactionFactoryBuilder
extends Object
implements org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>


Constructor Summary
AlphaStm.AlphaTransactionFactoryBuilder()
           
AlphaStm.AlphaTransactionFactoryBuilder(boolean readonly, boolean readTrackingEnabled, String familyName, int maxRetries, boolean writeSkewAllowed, org.multiverse.api.commitlock.CommitLockPolicy commitLockPolicy, org.multiverse.api.backoff.BackoffPolicy backoffPolicy, SpeculativeConfiguration speculativeConfig, boolean interruptible, boolean dirtyCheck, boolean quickReleaseEnabled, boolean explicitRetryAllowed, long timeoutNs, int maxReadSpinCount)
           
 
Method Summary
 org.multiverse.api.TransactionFactory<AlphaTransaction> build()
           
 org.multiverse.api.backoff.BackoffPolicy getBackoffPolicy()
           
 org.multiverse.api.commitlock.CommitLockPolicy getCommitLockPolicy()
           
 String getFamilyName()
           
 int getMaxReadSpinCount()
           
 int getMaxRetries()
           
 long getTimeoutNs()
           
 boolean isDirtyCheckEnabled()
           
 boolean isExplicitRetryAllowed()
           
 boolean isInterruptible()
           
 boolean isQuickReleaseEnabled()
           
 boolean isReadonly()
           
 boolean isReadTrackingEnabled()
           
 boolean isSpeculativeConfigurationEnabled()
           
 boolean isWriteSkewAllowed()
           
 AlphaStm.AlphaTransactionFactoryBuilder setBackoffPolicy(org.multiverse.api.backoff.BackoffPolicy backoffPolicy)
           
 AlphaStm.AlphaTransactionFactoryBuilder setCommitLockPolicy(org.multiverse.api.commitlock.CommitLockPolicy commitLockPolicy)
           
 AlphaStm.AlphaTransactionFactoryBuilder setDirtyCheckEnabled(boolean dirtyCheckEnabled)
           
 AlphaStm.AlphaTransactionFactoryBuilder setExplicitRetryAllowed(boolean explicitRetryAllowed)
           
 AlphaStm.AlphaTransactionFactoryBuilder setFamilyName(String familyName)
           
 AlphaStm.AlphaTransactionFactoryBuilder setInterruptible(boolean interruptible)
           
 AlphaStm.AlphaTransactionFactoryBuilder setMaxReadSpinCount(int maxReadSpinCount)
           
 AlphaStm.AlphaTransactionFactoryBuilder setMaxRetries(int maxRetries)
           
 AlphaStm.AlphaTransactionFactoryBuilder setQuickReleaseEnabled(boolean quickReleaseEnabled)
           
 AlphaStm.AlphaTransactionFactoryBuilder setReadonly(boolean readonly)
           
 AlphaStm.AlphaTransactionFactoryBuilder setReadTrackingEnabled(boolean readTrackingEnabled)
           
 AlphaStm.AlphaTransactionFactoryBuilder setSpeculativeConfigurationEnabled(boolean enabled)
           
 AlphaStm.AlphaTransactionFactoryBuilder setTimeoutNs(long timeoutNs)
           
 AlphaStm.AlphaTransactionFactoryBuilder setWriteSkewAllowed(boolean allowWriteSkew)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlphaStm.AlphaTransactionFactoryBuilder

public AlphaStm.AlphaTransactionFactoryBuilder()

AlphaStm.AlphaTransactionFactoryBuilder

public AlphaStm.AlphaTransactionFactoryBuilder(boolean readonly,
                                               boolean readTrackingEnabled,
                                               String familyName,
                                               int maxRetries,
                                               boolean writeSkewAllowed,
                                               org.multiverse.api.commitlock.CommitLockPolicy commitLockPolicy,
                                               org.multiverse.api.backoff.BackoffPolicy backoffPolicy,
                                               SpeculativeConfiguration speculativeConfig,
                                               boolean interruptible,
                                               boolean dirtyCheck,
                                               boolean quickReleaseEnabled,
                                               boolean explicitRetryAllowed,
                                               long timeoutNs,
                                               int maxReadSpinCount)
Method Detail

getBackoffPolicy

public org.multiverse.api.backoff.BackoffPolicy getBackoffPolicy()
Specified by:
getBackoffPolicy in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isDirtyCheckEnabled

public boolean isDirtyCheckEnabled()
Specified by:
isDirtyCheckEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isExplicitRetryAllowed

public boolean isExplicitRetryAllowed()
Specified by:
isExplicitRetryAllowed in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

getFamilyName

public String getFamilyName()
Specified by:
getFamilyName in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isReadonly

public boolean isReadonly()
Specified by:
isReadonly in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isReadTrackingEnabled

public boolean isReadTrackingEnabled()
Specified by:
isReadTrackingEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isInterruptible

public boolean isInterruptible()
Specified by:
isInterruptible in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

getCommitLockPolicy

public org.multiverse.api.commitlock.CommitLockPolicy getCommitLockPolicy()
Specified by:
getCommitLockPolicy in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isSpeculativeConfigurationEnabled

public boolean isSpeculativeConfigurationEnabled()
Specified by:
isSpeculativeConfigurationEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isWriteSkewAllowed

public boolean isWriteSkewAllowed()
Specified by:
isWriteSkewAllowed in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

isQuickReleaseEnabled

public boolean isQuickReleaseEnabled()
Specified by:
isQuickReleaseEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

getTimeoutNs

public long getTimeoutNs()
Specified by:
getTimeoutNs in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

getMaxRetries

public int getMaxRetries()
Specified by:
getMaxRetries in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

getMaxReadSpinCount

public int getMaxReadSpinCount()
Specified by:
getMaxReadSpinCount in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setMaxReadSpinCount

public AlphaStm.AlphaTransactionFactoryBuilder setMaxReadSpinCount(int maxReadSpinCount)
Specified by:
setMaxReadSpinCount in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setTimeoutNs

public AlphaStm.AlphaTransactionFactoryBuilder setTimeoutNs(long timeoutNs)
Specified by:
setTimeoutNs in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setFamilyName

public AlphaStm.AlphaTransactionFactoryBuilder setFamilyName(String familyName)
Specified by:
setFamilyName in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setQuickReleaseEnabled

public AlphaStm.AlphaTransactionFactoryBuilder setQuickReleaseEnabled(boolean quickReleaseEnabled)
Specified by:
setQuickReleaseEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setMaxRetries

public AlphaStm.AlphaTransactionFactoryBuilder setMaxRetries(int maxRetries)
Specified by:
setMaxRetries in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setReadonly

public AlphaStm.AlphaTransactionFactoryBuilder setReadonly(boolean readonly)
Specified by:
setReadonly in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setReadTrackingEnabled

public AlphaStm.AlphaTransactionFactoryBuilder setReadTrackingEnabled(boolean readTrackingEnabled)
Specified by:
setReadTrackingEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setInterruptible

public AlphaStm.AlphaTransactionFactoryBuilder setInterruptible(boolean interruptible)
Specified by:
setInterruptible in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setCommitLockPolicy

public AlphaStm.AlphaTransactionFactoryBuilder setCommitLockPolicy(org.multiverse.api.commitlock.CommitLockPolicy commitLockPolicy)
Specified by:
setCommitLockPolicy in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setSpeculativeConfigurationEnabled

public AlphaStm.AlphaTransactionFactoryBuilder setSpeculativeConfigurationEnabled(boolean enabled)
Specified by:
setSpeculativeConfigurationEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setWriteSkewAllowed

public AlphaStm.AlphaTransactionFactoryBuilder setWriteSkewAllowed(boolean allowWriteSkew)
Specified by:
setWriteSkewAllowed in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setBackoffPolicy

public AlphaStm.AlphaTransactionFactoryBuilder setBackoffPolicy(org.multiverse.api.backoff.BackoffPolicy backoffPolicy)
Specified by:
setBackoffPolicy in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setDirtyCheckEnabled

public AlphaStm.AlphaTransactionFactoryBuilder setDirtyCheckEnabled(boolean dirtyCheckEnabled)
Specified by:
setDirtyCheckEnabled in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

setExplicitRetryAllowed

public AlphaStm.AlphaTransactionFactoryBuilder setExplicitRetryAllowed(boolean explicitRetryAllowed)
Specified by:
setExplicitRetryAllowed in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>

build

public org.multiverse.api.TransactionFactory<AlphaTransaction> build()
Specified by:
build in interface org.multiverse.api.TransactionFactoryBuilder<AlphaTransaction,AlphaStm.AlphaTransactionFactoryBuilder>


Copyright © 2008-2010 Multiverse. All Rights Reserved.