Class DfsBlockCache.Ref<T>
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.dfs.DfsBlockCache.Ref<T>
-
- Enclosing class:
- DfsBlockCache
static final class DfsBlockCache.Ref<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
hotCount
(package private) DfsStreamKey
key
(package private) DfsBlockCache.Ref
next
(package private) long
position
(package private) long
size
private java.util.concurrent.atomic.AtomicInteger
totalHitCount
(package private) T
value
-
Constructor Summary
Constructors Constructor Description Ref(DfsStreamKey key, long position, long size, T v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) T
get()
(package private) boolean
has()
(package private) boolean
isHot()
(package private) void
markColder()
(package private) void
markHotter()
-
-
-
Field Detail
-
key
final DfsStreamKey key
-
position
final long position
-
size
final long size
-
value
volatile T value
-
next
DfsBlockCache.Ref next
-
hotCount
private volatile int hotCount
-
totalHitCount
private java.util.concurrent.atomic.AtomicInteger totalHitCount
-
-
Constructor Detail
-
Ref
Ref(DfsStreamKey key, long position, long size, T v)
-
-
Method Detail
-
get
T get()
-
has
boolean has()
-
markHotter
void markHotter()
-
markColder
void markColder()
-
isHot
boolean isHot()
-
-