com.kuka.resource.locking
Class ResourceAlreadyLockedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.kuka.resource.locking.LockException
com.kuka.resource.locking.ResourceAlreadyLockedException
- All Implemented Interfaces:
- Serializable
public class ResourceAlreadyLockedException
- extends LockException
The exception signals that a resource is already locked by another application.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ResourceAlreadyLockedException
public ResourceAlreadyLockedException(String currentHolderName,
LockPriority priority)
- Constructs a new exception with the priority of the current lock holder.
- Parameters:
currentHolderName - name of the current lock holderpriority - The priority of the current lock holder.
ResourceAlreadyLockedException
public ResourceAlreadyLockedException(LockPriority priority)
- Constructs a new exception with the priority of the current lock holder.
- Parameters:
priority - The priority of the current lock holder.
getPriority
public LockPriority getPriority()
- Returns the priority of the lock holder. A lock attempt with a higher priority will succeed as long as the lock
holder is unchanged.
- Returns:
- the priority of the lock holder
Copyright © 2019. All rights reserved.