public class LockInfo extends Object
Constructor and Description |
---|
LockInfo(String name,
String owner,
String thread,
LocalDateTime acquired)
Creates a new lock info.
|
Modifier and Type | Method and Description |
---|---|
LocalDateTime |
getAcquired()
Returns the timestamp when the lock was acquired.
|
String |
getName()
Returns the name of the lock.
|
String |
getOwner()
Returns the node on which the lock was acquired.
|
String |
getThread()
Returns the thread which acquired the lock.
|
public LockInfo(String name, String owner, String thread, LocalDateTime acquired)
name
- the name of the lockowner
- the node which acquired the lockthread
- the thread which acquired the lockacquired
- the timestamp when the lock was acquiredpublic String getName()
public String getOwner()
public String getThread()
public LocalDateTime getAcquired()
Copyright © 2018. All rights reserved.