@API(status=EXPERIMENTAL, since="1.3") public class ExclusiveResource extends Object
Node.getExecutionMode()
Modifier and Type | Class | Description |
---|---|---|
static class |
ExclusiveResource.LockMode |
LockMode translates to the respective ReadWriteLock
locks. |
Constructor | Description |
---|---|
ExclusiveResource(String key,
ExclusiveResource.LockMode lockMode) |
Create a new
ExclusiveResource . |
Modifier and Type | Method | 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 © 2019. All rights reserved.