@API(status=EXPERIMENTAL, since="1.3") public class ExclusiveResource extends Object
Node.getExecutionMode()
Modifier and Type | Class and Description |
---|---|
static class |
ExclusiveResource.LockMode
LockMode translates to the respective ReadWriteLock
locks. |
Constructor and Description |
---|
ExclusiveResource(String key,
ExclusiveResource.LockMode lockMode)
Create a new
ExclusiveResource . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getKey()
Get the key of this resource.
|
ExclusiveResource.LockMode |
getLockMode()
Get the lock mode of this resource.
|
int |
hashCode() |
String |
toString() |
public ExclusiveResource(String key, ExclusiveResource.LockMode lockMode)
ExclusiveResource
.key
- the identifier of the resource; never null
or blanklockMode
- the lock mode to use to synchronize access to the
resource; never null
public String getKey()
public ExclusiveResource.LockMode getLockMode()
Copyright © 2021. All rights reserved.