@InterfaceAudience.Private public class LockedResource extends Object
Modifier and Type | Field and Description |
---|---|
private Procedure<?> |
exclusiveLockOwnerProcedure |
private LockType |
lockType |
private String |
resourceName |
private LockedResourceType |
resourceType |
private int |
sharedLockCount |
private List<Procedure<?>> |
waitingProcedures |
Constructor and Description |
---|
LockedResource(LockedResourceType resourceType,
String resourceName,
LockType lockType,
Procedure<?> exclusiveLockOwnerProcedure,
int sharedLockCount,
List<Procedure<?>> waitingProcedures) |
Modifier and Type | Method and Description |
---|---|
Procedure<?> |
getExclusiveLockOwnerProcedure() |
LockType |
getLockType() |
String |
getResourceName() |
LockedResourceType |
getResourceType() |
int |
getSharedLockCount() |
List<Procedure<?>> |
getWaitingProcedures() |
private final LockedResourceType resourceType
private final String resourceName
private final Procedure<?> exclusiveLockOwnerProcedure
private final int sharedLockCount
private final List<Procedure<?>> waitingProcedures
public LockedResource(LockedResourceType resourceType, String resourceName, LockType lockType, Procedure<?> exclusiveLockOwnerProcedure, int sharedLockCount, List<Procedure<?>> waitingProcedures)
public LockedResourceType getResourceType()
public String getResourceName()
public LockType getLockType()
public Procedure<?> getExclusiveLockOwnerProcedure()
public int getSharedLockCount()
public List<Procedure<?>> getWaitingProcedures()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.