|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.reggie.RegistrarImpl.SvcReg
private static final class RegistrarImpl.SvcReg
A service item registration record.
Field Summary | |
---|---|
Item |
item
The service item. |
long |
leaseExpiration
The lease expiration time. |
Uuid |
leaseID
The lease id. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
RegistrarImpl.SvcReg(Item item,
Uuid leaseID,
long leaseExpiration)
Simple constructor |
Method Summary | |
---|---|
private static int |
compare(long l1,
long l2)
Compares long values, returning -1, 0, or 1 if l1 is less than, equal to or greater than l2, respectively. |
int |
compareTo(Object obj)
Primary sort by leaseExpiration, secondary by leaseID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public final Item item
public final Uuid leaseID
public long leaseExpiration
Constructor Detail |
---|
public RegistrarImpl.SvcReg(Item item, Uuid leaseID, long leaseExpiration)
Method Detail |
---|
public int compareTo(Object obj)
compareTo
in interface Comparable
private static int compare(long l1, long l2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |