private static class AbstractIDLeaseMap.LeaseEntry<K extends Lease> extends Object implements Map.Entry<K,Long>, Comparable<AbstractIDLeaseMap.LeaseEntry<K>>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<Object,Long> |
durationMap |
private Object |
identity |
private K |
key |
private java.util.concurrent.ConcurrentMap<Object,K> |
leaseMap |
private Set<Map.Entry<K,Long>> |
set |
private Long |
value |
Constructor and Description |
---|
LeaseEntry(Object identity,
java.util.concurrent.ConcurrentMap<Object,K> leaseMap,
java.util.concurrent.ConcurrentMap<Object,Long> durationMap,
Set<Map.Entry<K,Long>> set) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AbstractIDLeaseMap.LeaseEntry<K> o) |
boolean |
equals(Object o) |
K |
getKey() |
Long |
getValue() |
int |
hashCode() |
(package private) boolean |
isNew(K key,
Long value) |
Long |
setValue(Long value) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
private final java.util.concurrent.ConcurrentMap<Object,K extends Lease> leaseMap
private final java.util.concurrent.ConcurrentMap<Object,Long> durationMap
private final Object identity
private volatile Long value
public int hashCode()
public boolean equals(Object o)
public int compareTo(AbstractIDLeaseMap.LeaseEntry<K> o)
compareTo
in interface Comparable<AbstractIDLeaseMap.LeaseEntry<K extends Lease>>
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.