com.sleepycat.je.rep.vlsn
Class LogItemCache
java.lang.Object
com.sleepycat.je.rep.vlsn.LogItemCache
class LogItemCache
- extends Object
A no-wait cache used to retain the most recent VLSNs. The Feeders check this
cache first for log entries to send out to the Replicas. Feeders that are
feeding at the most up to date portion of the replication stream will likely
hit in the cache, preventing a lookup in the log buffers or log files.
The log item cache is made up of weak references so there is never any
guarantee that even the most recent 32 entries are in there.
Method Summary |
(package private) void |
clear()
For explicit release of references. |
(package private) LogItem |
get(VLSN vlsn)
|
(package private) void |
put(VLSN vlsn,
LogItem logItem)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogItemCache
LogItemCache(int cacheSize)
- Throws:
IllegalArgumentException
- via ReplicatedEnvironment ctor.
put
void put(VLSN vlsn,
LogItem logItem)
get
LogItem get(VLSN vlsn)
clear
void clear()
- For explicit release of references.
Copyright (c) 2004-2010 Oracle. All rights reserved.