public class LockTimeout extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
LockTimeout.DateAndSeconds |
| Constructor and Description |
|---|
LockTimeout(Long timeout) |
| Modifier and Type | Method and Description |
|---|---|
static LockTimeout.DateAndSeconds |
addSeconds(Long l) |
LockTimeout.DateAndSeconds |
getLockedUntil(Long defaultSeconds,
Long maxSeconds)
Returns a current object which holds the expected end date/time, based
on defaultSeconds and maxSeconds, as well as the actual seconds used
in that calculation.
|
Long[] |
getOtherSeconds() |
Long |
getSeconds() |
static LockTimeout |
parseTimeout(Request request) |
static LockTimeout |
parseTimeout(String s) |
String |
toString() |
public LockTimeout(Long timeout)
timeout - - duration that the lock will live for, in secondspublic static LockTimeout parseTimeout(Request request)
public static LockTimeout parseTimeout(String s)
public Long getSeconds()
public Long[] getOtherSeconds()
public LockTimeout.DateAndSeconds getLockedUntil(Long defaultSeconds, Long maxSeconds)
public static LockTimeout.DateAndSeconds addSeconds(Long l)