public class

RelativeTimeout

extends Object
implements Serializable
java.lang.Object
   ↳ org.ops4j.pax.exam.RelativeTimeout

Class Overview

Timout type that is being used in exam to specify a single timeout value but control different timout points in the system with that value. In most cases, clients will just use the value directly as time in milliseconds. However, this type also says that the value is just a (possibly user specified) "hint" and not mean the exaclt value. You can see it as a relative timeout value.

Summary

Fields
public static final RelativeTimeout TIMEOUT_DEFAULT
public static final RelativeTimeout TIMEOUT_NOTIMEOUT
public static final RelativeTimeout TIMEOUT_NOWAIT
Public Constructors
RelativeTimeout(long time)
Public Methods
boolean equals(Object obj)
long getLowerValue()
long getUpperValue()
long getValue()
int hashCode()
boolean isDefault()
boolean isNoTimeout()
boolean isNoWait()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final RelativeTimeout TIMEOUT_DEFAULT

public static final RelativeTimeout TIMEOUT_NOTIMEOUT

public static final RelativeTimeout TIMEOUT_NOWAIT

Public Constructors

public RelativeTimeout (long time)

Public Methods

public boolean equals (Object obj)

public long getLowerValue ()

Returns
  • Tendentiative lower timeout value. This is relative to getValue()

public long getUpperValue ()

Returns
  • Tendentiative higher timeout value. This is relative to getValue()

public long getValue ()

Returns
  • Default Timeout value.

public int hashCode ()

public boolean isDefault ()

public boolean isNoTimeout ()

public boolean isNoWait ()

public String toString ()