|
|||||||||
| 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 |
java.util.concurrent.TimeUnit |
unit
The time unit value |
| Constructor Summary | |
|---|---|
TimeStruct(long timeout,
java.util.concurrent.TimeUnit unit)
Creates a new instance |
|
| Method Summary | |
|---|---|
int |
compareTo(TimeStruct o)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public long timeout
public java.util.concurrent.TimeUnit unit
| Constructor Detail |
|---|
public TimeStruct(long timeout,
java.util.concurrent.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 java.lang.Comparable<TimeStruct>Comparable.compareTo(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||