|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.conquiris.api.index.Delays
@Immutable public final class Delays
Indexing delays specification. The delays are expressed in ms and must be >= 0, otherwise the
methods throw IllegalArgumentException.
| Method Summary | |
|---|---|
static Delays |
constant(long delay)
Returns a constant delay specification. |
boolean |
equals(Object obj)
|
long |
getError()
Returns the error delay. |
long |
getIdle()
Returns the idle delay. |
long |
getNormal()
Returns the normal delay. |
int |
hashCode()
|
static Delays |
of(long normal,
long idle,
long error)
Returns a delay specification. |
Delays |
setError(long error)
Returns a delay specification equal to this one but with the provided error delay. |
Delays |
setIdle(long idle)
Returns a delay specification equal to this one but with the provided idle delay. |
Delays |
setNormal(long normal)
Returns a delay specification equal to this one but with the provided normal delay. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Delays constant(long delay)
public static Delays of(long normal,
long idle,
long error)
normal - Normal delay.idle - Idle delay.error - Error delay.
public long getNormal()
public Delays setNormal(long normal)
public Delays setIdle(long idle)
public Delays setError(long error)
public long getIdle()
public long getError()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||