Package | Description |
---|---|
org.multiverse.api | |
org.multiverse.api.references | |
org.multiverse.stms.gamma | |
org.multiverse.stms.gamma.transactionalobjects | |
org.multiverse.stms.gamma.transactions |
Modifier and Type | Method and Description |
---|---|
LockMode |
Lock.atomicGetLockMode()
Returns the current LockMode.
|
LockMode |
Lock.getLockMode()
Gets the LockMode the transaction stored in the the
TxnThreadLocal has on this Lock. |
LockMode |
Lock.getLockMode(Txn txn)
Gets the LockMode the transaction has on the Lock.
|
LockMode |
TxnConfig.getReadLockMode()
Gets the current LockMode for all reads.
|
LockMode |
TxnConfig.getWriteLockMode()
Gets the current LockMode for all writes.
|
static LockMode |
LockMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockMode[] |
LockMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Lock.acquire(LockMode desiredLockMode)
Acquires a Lock with the provided LockMode.
|
void |
Lock.acquire(Txn txn,
LockMode desiredLockMode)
Acquires a Lock with the provided LockMode using the provided transaction.
|
TxnFactoryBuilder |
TxnFactoryBuilder.setReadLockMode(LockMode lockMode)
|
TxnFactoryBuilder |
TxnFactoryBuilder.setWriteLockMode(LockMode lockMode)
|
Modifier and Type | Method and Description |
---|---|
E |
TxnRef.getAndLock(LockMode lockMode)
Gets the value and applies the lock.
|
int |
TxnInteger.getAndLock(LockMode lockMode)
Gets the value and applies the lock.
|
boolean |
TxnBoolean.getAndLock(LockMode lockMode)
Gets the value and applies the lock.
|
double |
TxnDouble.getAndLock(LockMode lockMode)
Gets the value and applies the lock.
|
long |
TxnLong.getAndLock(LockMode lockMode)
Gets the value and applies the lock.
|
E |
TxnRef.getAndLock(Txn txn,
LockMode lockMode)
Gets the value using the provided txn and acquired the lock with the specified LockMode.
|
int |
TxnInteger.getAndLock(Txn txn,
LockMode lockMode)
Gets the value using the provided txn and acquired the lock with the specified LockMode.
|
boolean |
TxnBoolean.getAndLock(Txn txn,
LockMode lockMode)
Gets the value using the provided txn and acquired the lock with the specified LockMode.
|
double |
TxnDouble.getAndLock(Txn txn,
LockMode lockMode)
Gets the value using the provided txn and acquired the lock with the specified LockMode.
|
long |
TxnLong.getAndLock(Txn txn,
LockMode lockMode)
Gets the value using the provided txn and acquired the lock with the specified LockMode.
|
boolean |
TxnBoolean.getAndSetAndLock(boolean value,
LockMode lockMode)
Sets the value, acquired the Lock with the specified Lockmode and returns the previous value.
|
double |
TxnDouble.getAndSetAndLock(double value,
LockMode lockMode)
Sets the value, acquired the Lock with the specified Lockmode and returns the previous value.
|
E |
TxnRef.getAndSetAndLock(E value,
LockMode lockMode)
Sets the value, acquired the Lock with the specified Lockmode and returns the previous value.
|
int |
TxnInteger.getAndSetAndLock(int value,
LockMode lockMode)
Sets the value, acquired the Lock with the specified Lockmode and returns the previous value.
|
long |
TxnLong.getAndSetAndLock(long value,
LockMode lockMode)
Sets the value, acquired the Lock with the specified Lockmode and returns the previous value.
|
boolean |
TxnBoolean.getAndSetAndLock(Txn txn,
boolean value,
LockMode lockMode)
Sets the value and acquired the Lock with the provided LockMode.
|
double |
TxnDouble.getAndSetAndLock(Txn txn,
double value,
LockMode lockMode)
Sets the value and acquired the Lock with the provided LockMode.
|
E |
TxnRef.getAndSetAndLock(Txn txn,
E value,
LockMode lockMode)
Sets the value and acquired the Lock with the provided LockMode.
|
int |
TxnInteger.getAndSetAndLock(Txn txn,
int value,
LockMode lockMode)
Sets the value and acquired the Lock with the provided LockMode.
|
long |
TxnLong.getAndSetAndLock(Txn txn,
long value,
LockMode lockMode)
Sets the value and acquired the Lock with the provided LockMode.
|
boolean |
TxnBoolean.setAndLock(boolean value,
LockMode lockMode)
Sets the new value and applies the lock.
|
double |
TxnDouble.setAndLock(double value,
LockMode lockMode)
Sets the new value and applies the lock.
|
E |
TxnRef.setAndLock(E value,
LockMode lockMode)
Sets the new value and applies the lock.
|
int |
TxnInteger.setAndLock(int value,
LockMode lockMode)
Sets the new value and applies the lock.
|
long |
TxnLong.setAndLock(long value,
LockMode lockMode)
Sets the new value and applies the lock.
|
boolean |
TxnBoolean.setAndLock(Txn txn,
boolean value,
LockMode lockMode)
Sets the new value using the provided txn.
|
double |
TxnDouble.setAndLock(Txn txn,
double value,
LockMode lockMode)
Sets the new value using the provided txn.
|
E |
TxnRef.setAndLock(Txn txn,
E value,
LockMode lockMode)
Sets the new value using the provided txn.
|
int |
TxnInteger.setAndLock(Txn txn,
int value,
LockMode lockMode)
Sets the new value using the provided txn.
|
long |
TxnLong.setAndLock(Txn txn,
long value,
LockMode lockMode)
Sets the new value using the provided txn.
|
Modifier and Type | Field and Description |
---|---|
LockMode |
GammaStmConfig.readLockMode
The default isolation level for all reads.
|
LockMode |
GammaStmConfig.writeLockMode
The default isolation level for all writes.
|
Modifier and Type | Method and Description |
---|---|
LockMode |
AbstractGammaObject.atomicGetLockMode() |
LockMode |
AbstractGammaObject.getLockMode() |
LockMode |
AbstractGammaObject.getLockMode(GammaTxn tx) |
LockMode |
AbstractGammaObject.getLockMode(Txn tx) |
Modifier and Type | Method and Description |
---|---|
void |
BaseGammaTxnRef.acquire(GammaTxn tx,
LockMode lockMode) |
void |
BaseGammaTxnRef.acquire(LockMode desiredLockMode) |
void |
BaseGammaTxnRef.acquire(Txn tx,
LockMode desiredLockMode) |
E |
GammaTxnRef.getAndLock(GammaTxn tx,
LockMode lockMode) |
int |
GammaTxnInteger.getAndLock(GammaTxn tx,
LockMode lockMode) |
boolean |
GammaTxnBoolean.getAndLock(GammaTxn tx,
LockMode lockMode) |
double |
GammaTxnDouble.getAndLock(GammaTxn tx,
LockMode lockMode) |
long |
GammaTxnLong.getAndLock(GammaTxn tx,
LockMode lockMode) |
E |
GammaTxnRef.getAndLock(LockMode lockMode) |
int |
GammaTxnInteger.getAndLock(LockMode lockMode) |
boolean |
GammaTxnBoolean.getAndLock(LockMode lockMode) |
double |
GammaTxnDouble.getAndLock(LockMode lockMode) |
long |
GammaTxnLong.getAndLock(LockMode lockMode) |
E |
GammaTxnRef.getAndLock(Txn tx,
LockMode lockMode) |
int |
GammaTxnInteger.getAndLock(Txn tx,
LockMode lockMode) |
boolean |
GammaTxnBoolean.getAndLock(Txn tx,
LockMode lockMode) |
double |
GammaTxnDouble.getAndLock(Txn tx,
LockMode lockMode) |
long |
GammaTxnLong.getAndLock(Txn tx,
LockMode lockMode) |
boolean |
GammaTxnBoolean.getAndSetAndLock(boolean value,
LockMode lockMode) |
double |
GammaTxnDouble.getAndSetAndLock(double value,
LockMode lockMode) |
E |
GammaTxnRef.getAndSetAndLock(E value,
LockMode lockMode) |
boolean |
GammaTxnBoolean.getAndSetAndLock(GammaTxn tx,
boolean value,
LockMode lockMode) |
double |
GammaTxnDouble.getAndSetAndLock(GammaTxn tx,
double value,
LockMode lockMode) |
E |
GammaTxnRef.getAndSetAndLock(GammaTxn tx,
E value,
LockMode lockMode) |
int |
GammaTxnInteger.getAndSetAndLock(int value,
LockMode lockMode) |
long |
GammaTxnLong.getAndSetAndLock(long value,
LockMode lockMode) |
boolean |
GammaTxnBoolean.getAndSetAndLock(Txn tx,
boolean value,
LockMode lockMode) |
double |
GammaTxnDouble.getAndSetAndLock(Txn tx,
double value,
LockMode lockMode) |
E |
GammaTxnRef.getAndSetAndLock(Txn tx,
E value,
LockMode lockMode) |
int |
GammaTxnInteger.getAndSetAndLock(Txn tx,
int value,
LockMode lockMode) |
long |
GammaTxnLong.getAndSetAndLock(Txn tx,
long value,
LockMode lockMode) |
int |
GammaTxnInteger.getAndSetLock(GammaTxn tx,
int value,
LockMode lockMode) |
long |
GammaTxnLong.getAndSetLock(GammaTxn tx,
long value,
LockMode lockMode) |
protected long |
BaseGammaTxnRef.getLong(GammaTxn tx,
LockMode lockMode) |
protected Object |
BaseGammaTxnRef.getObject(GammaTxn tx,
LockMode lockMode) |
boolean |
GammaTxnBoolean.setAndLock(boolean value,
LockMode lockMode) |
double |
GammaTxnDouble.setAndLock(double value,
LockMode lockMode) |
E |
GammaTxnRef.setAndLock(E value,
LockMode lockMode) |
boolean |
GammaTxnBoolean.setAndLock(GammaTxn tx,
boolean value,
LockMode lockMode) |
double |
GammaTxnDouble.setAndLock(GammaTxn tx,
double value,
LockMode lockMode) |
E |
GammaTxnRef.setAndLock(GammaTxn tx,
E value,
LockMode lockMode) |
int |
GammaTxnInteger.setAndLock(GammaTxn tx,
int value,
LockMode lockMode) |
long |
GammaTxnLong.setAndLock(GammaTxn tx,
long value,
LockMode lockMode) |
int |
GammaTxnInteger.setAndLock(int value,
LockMode lockMode) |
long |
GammaTxnLong.setAndLock(long value,
LockMode lockMode) |
boolean |
GammaTxnBoolean.setAndLock(Txn tx,
boolean value,
LockMode lockMode) |
double |
GammaTxnDouble.setAndLock(Txn tx,
double value,
LockMode lockMode) |
E |
GammaTxnRef.setAndLock(Txn tx,
E value,
LockMode lockMode) |
int |
GammaTxnInteger.setAndLock(Txn tx,
int value,
LockMode lockMode) |
long |
GammaTxnLong.setAndLock(Txn tx,
long value,
LockMode lockMode) |
protected long |
BaseGammaTxnRef.setLong(GammaTxn tx,
LockMode lockMode,
long newValue,
boolean returnOld) |
protected Object |
BaseGammaTxnRef.setObject(GammaTxn tx,
LockMode lockMode,
Object newValue,
boolean returnOld) |
Modifier and Type | Field and Description |
---|---|
LockMode |
GammaTxnConfig.readLockMode |
LockMode |
GammaTxnConfig.writeLockMode |
Modifier and Type | Method and Description |
---|---|
LockMode |
GammaTxnConfig.getReadLockMode() |
LockMode |
GammaTxnConfig.getWriteLockMode() |
Modifier and Type | Method and Description |
---|---|
GammaTxnConfig |
GammaTxnConfig.setReadLockMode(LockMode readLockMode) |
GammaTxnFactoryBuilder |
GammaTxnFactoryBuilder.setReadLockMode(LockMode lockMode) |
GammaTxnConfig |
GammaTxnConfig.setWriteLockMode(LockMode writeLockMode) |
GammaTxnFactoryBuilder |
GammaTxnFactoryBuilder.setWriteLockMode(LockMode lockMode) |
Copyright © 2020. All rights reserved.