private static final class RegistrarImpl.SvcReg extends Object implements Comparable, Serializable
Modifier and Type | Field and Description |
---|---|
Item |
item
The service item.
|
long |
leaseExpiration
The lease expiration time.
|
Uuid |
leaseID
The lease id.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
SvcReg(Item item,
Uuid leaseID,
long leaseExpiration)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
private static final long serialVersionUID
public final Item item
public final Uuid leaseID
public long leaseExpiration
public int compareTo(Object obj)
compareTo
in interface Comparable
private static int compare(long l1, long l2)
Copyright 2007-2016, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.