|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| ConsistentHash | A consistent hash algorithm implementation. |
| DistributionManager | A component that manages the distribution of elements across a cache cluster |
| TransactionLogger | Typically adding a command, the following pattern would be used:
if (txLogger.logIfNeeded(cmd)) {
// do NOT proceed with executing this command!
} else {
// proceed with executing this command as per normal!
}
When draining, the following pattern should be used:
List<WriteCommand> c = null;
while (txLogger.shouldDrainWithoutLock()) {
c = txLogger.drain();
applyCommands(c);
}
c = txLogger.drainAndLock();
applyCommands(c);
applyPendingPrepares(txLogger.getPendingPrepares());
txLogger.unlockAndDisable();
|
| Class Summary | |
|---|---|
| AbstractConsistentHash | An abstract consistent hash implementation that handles common implementations of certain methods. |
| ConsistentHashHelper | A helper class that handles the construction of consistent hash instances based on configuration. |
| DefaultConsistentHash | |
| DefaultConsistentHash.Externalizer | |
| DistributionManagerImpl | The default distribution manager implementation |
| ExperimentalDefaultConsistentHash | Consistent hashing algorithm. |
| ExperimentalDefaultConsistentHash.Entry | An entry into a consistent hash. |
| ExperimentalDefaultConsistentHash.Externalizer | |
| InvertedLeaveTask | A task to handle rehashing for when a node leaves the cluster |
| JoinTask | 5. |
| RehashTask | A task that handles the rehashing of data in the cache system wheh nodes join or leave the cluster. |
| TransactionLoggerImpl | A transaction logger to log ongoing transactions in an efficient and thread-safe manner while a rehash is going on. |
| UnionConsistentHash | A delegating wrapper that locates keys by getting a union of locations reported by two other ConsistentHash implementations it delegates to. |
| UnionConsistentHash.Externalizer | |
Classes relating to the distributed cache mode.
|
Google Analytics | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||