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()
Deprecated.
Deprecated. Use metric from corresponding runtime cache
resource.
|
T |
currentConcurrencyLevel(Integer value)
Deprecated.
Deprecated. Use metric from corresponding runtime cache
resource.
|
String |
getKey() |
LockingComponent.Isolation |
isolation()
Sets the cache locking isolation level.
|
T |
isolation(LockingComponent.Isolation value)
Sets the cache locking isolation level.
|
Integer |
numberOfLocksAvailable()
Deprecated.
Deprecated. Use metric from corresponding runtime cache
resource.
|
T |
numberOfLocksAvailable(Integer value)
Deprecated.
Deprecated. Use metric from corresponding runtime cache
resource.
|
Integer |
numberOfLocksHeld()
Deprecated.
Deprecated. Use metric from corresponding runtime cache
resource.
|
T |
numberOfLocksHeld(Integer value)
Deprecated.
Deprecated. Use metric from corresponding runtime cache
resource.
|
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)
@Deprecated public Integer currentConcurrencyLevel()
@Deprecated public T currentConcurrencyLevel(Integer value)
public LockingComponent.Isolation isolation()
public T isolation(LockingComponent.Isolation value)
@Deprecated public Integer numberOfLocksAvailable()
@Deprecated public T numberOfLocksAvailable(Integer value)
@Deprecated public Integer numberOfLocksHeld()
@Deprecated public T numberOfLocksHeld(Integer value)
public Boolean striping()
Copyright © 2020 JBoss by Red Hat. All rights reserved.