Constructor and Description |
---|
Lock(String userId,
String sessionId)
One of the params should not be null.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getLockId() |
Date |
getLockTime() |
Long |
getProductId() |
String |
getSessionId()
Same user could have multiple sessions; so allow locking @ session level
|
Number |
getUnits() |
String |
getUserId() |
int |
hashCode() |
void |
setLockId(String lockId) |
void |
setLockTime(Date lockTime) |
void |
setProductId(Long productId) |
void |
setSessionId(String sessionId)
Same user could have multiple sessions; so allow locking @ session level
|
void |
setUnits(Number units) |
void |
setUserId(String userId) |
public Date getLockTime()
public void setLockTime(Date lockTime)
public String getLockId()
public void setLockId(String lockId)
public Number getUnits()
public void setUnits(Number units)
public Long getProductId()
public void setProductId(Long productId)
public String getUserId()
public void setUserId(String userId)
public String getSessionId()
public void setSessionId(String sessionId)
Copyright © 2018. All rights reserved.