public class TimeLimit extends Limit
Limit.WhenExceedAction
Constructor and Description |
---|
TimeLimit(long maximumTime,
TimeUnit unit)
Create a new TimeLimit.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Limit other) |
boolean |
doesExceed(long count) |
boolean |
equals(Object o) |
long |
getTimeout() |
int |
hashCode() |
String |
toString() |
getExceedAction, setExceedAction
public TimeLimit(long maximumTime, TimeUnit unit)
maximumTime
- the value of the time limit (must be > 0)unit
- the unit of the time limitpublic long getTimeout()
public int compareTo(Limit other)
public boolean doesExceed(long count)
doesExceed
in class Limit
Copyright © 2017 levigo holding gmbh. All rights reserved.