public class LockingComponent<T extends LockingComponent<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LockingComponent.Isolation |
Constructor and Description |
---|
LockingComponent() |
Modifier and Type | Method and Description |
---|---|
Long |
acquireTimeout()
Maximum time to attempt a particular lock acquisition.
|
T |
acquireTimeout(Long value)
Maximum time to attempt a particular lock acquisition.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Integer |
concurrencyLevel()
Concurrency level for lock containers.
|
T |
concurrencyLevel(Integer value)
Concurrency level for lock containers.
|
Integer |
currentConcurrencyLevel()
The estimated number of concurrently updating threads which this cache
can support.
|
T |
currentConcurrencyLevel(Integer value)
The estimated number of concurrently updating threads which this cache
can support.
|
String |
getKey() |
LockingComponent.Isolation |
isolation()
Sets the cache locking isolation level.
|
T |
isolation(LockingComponent.Isolation value)
Sets the cache locking isolation level.
|
Integer |
numberOfLocksAvailable()
The number of locks available to this cache.
|
T |
numberOfLocksAvailable(Integer value)
The number of locks available to this cache.
|
Integer |
numberOfLocksHeld()
The number of locks currently in use by this cache.
|
T |
numberOfLocksHeld(Integer value)
The number of locks currently in use by this cache.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Boolean |
striping()
If true, a pool of shared locks is maintained for all entries that need
to be locked.
|
T |
striping(Boolean value)
If true, a pool of shared locks is maintained for all entries that need
to be locked.
|
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Long acquireTimeout()
public T acquireTimeout(Long value)
public Integer concurrencyLevel()
public T concurrencyLevel(Integer value)
public Integer currentConcurrencyLevel()
public T currentConcurrencyLevel(Integer value)
public LockingComponent.Isolation isolation()
public T isolation(LockingComponent.Isolation value)
public Integer numberOfLocksAvailable()
public T numberOfLocksAvailable(Integer value)
public Integer numberOfLocksHeld()
public T numberOfLocksHeld(Integer value)
public Boolean striping()
Copyright © 2019 JBoss by Red Hat. All rights reserved.