public class TryLockResponse
extends java.lang.Object
implements java.io.Serializable
The DataGate server tryLock operation response.
Constructor and Description |
---|
TryLockResponse()
Instantiates a new
TryLockResponse . |
TryLockResponse(boolean lockAcquired) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isLockAcquired()
The boolean value indicating whether the lock
has been acquired or not.
|
void |
setLockAcquired(boolean lockAcquired)
The boolean value indicating whether the lock
has been acquired or not.
|
java.lang.String |
toString() |
public TryLockResponse()
Instantiates a new TryLockResponse
.
public TryLockResponse(boolean lockAcquired)
public boolean isLockAcquired()
The boolean value indicating whether the lock has been acquired or not.
true
if lock acquired; false
otherwise.public void setLockAcquired(boolean lockAcquired)
The boolean value indicating whether the lock has been acquired or not.
lockAcquired
- the boolean valuepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object