|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.grs.store.buffer.multiplex.TimeStruct
public class TimeStruct
Utility class holding information on both timeout as well as associated time unit information. It can be used to order a pair of timeout and time unit information
| Field Summary | |
|---|---|
long |
timeout
The timeout value |
TimeUnit |
unit
The time unit value |
| Constructor Summary | |
|---|---|
TimeStruct(long timeout,
TimeUnit unit)
Creates a new instance |
|
| Method Summary | |
|---|---|
int |
compareTo(TimeStruct o)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public long timeout
public TimeUnit unit
| Constructor Detail |
|---|
public TimeStruct(long timeout,
TimeUnit unit)
timeout - the timeout valueunit - the time unit value| Method Detail |
|---|
public int compareTo(TimeStruct o)
The comparison is performed taking into account firstly the TimeUnit value and then if needed the timeout value
compareTo in interface Comparable<TimeStruct>Comparable.compareTo(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||