Codota Logo
CacheLongKeyLIRS$Segment.removeFromStack
Code IndexAdd Codota to your IDE (free)

How to use
removeFromStack
method
in
org.h2.mvstore.cache.CacheLongKeyLIRS$Segment

Best Java code snippets using org.h2.mvstore.cache.CacheLongKeyLIRS$Segment.removeFromStack (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

private void convertOldestHotToCold() {
  // the last entry of the stack is known to be hot
  Entry<V> last = stack.stackPrev;
  if (last == stack) {
    // never remove the stack head itself (this would mean the
    // internal structure of the cache is corrupt)
    throw new IllegalStateException();
  }
  // remove from stack - which is done anyway in the stack pruning,
  // but we can do it here as well
  removeFromStack(last);
  // adding an entry to the queue will make it cold
  addToQueue(queue, last);
  pruneStack();
}
origin: com.eventsourcing/h2

private void convertOldestHotToCold() {
  // the last entry of the stack is known to be hot
  Entry<V> last = stack.stackPrev;
  if (last == stack) {
    // never remove the stack head itself (this would mean the
    // internal structure of the cache is corrupt)
    throw new IllegalStateException();
  }
  // remove from stack - which is done anyway in the stack pruning,
  // but we can do it here as well
  removeFromStack(last);
  // adding an entry to the queue will make it cold
  addToQueue(queue, last);
  pruneStack();
}
origin: com.h2database/h2-mvstore

private void convertOldestHotToCold() {
  // the last entry of the stack is known to be hot
  Entry<V> last = stack.stackPrev;
  if (last == stack) {
    // never remove the stack head itself (this would mean the
    // internal structure of the cache is corrupt)
    throw new IllegalStateException();
  }
  // remove from stack - which is done anyway in the stack pruning,
  // but we can do it here as well
  removeFromStack(last);
  // adding an entry to the queue will make it cold
  addToQueue(queue, last);
  pruneStack();
}
origin: com.h2database/h2

/**
 * Ensure the last entry of the stack is cold.
 */
private void pruneStack() {
  while (true) {
    Entry<V> last = stack.stackPrev;
    // must stop at a hot entry or the stack head,
    // but the stack head itself is also hot, so we
    // don't have to test it
    if (last.isHot()) {
      break;
    }
    // the cold entry is still in the queue
    removeFromStack(last);
  }
}
origin: com.eventsourcing/h2

/**
 * Ensure the last entry of the stack is cold.
 */
private void pruneStack() {
  while (true) {
    Entry<V> last = stack.stackPrev;
    // must stop at a hot entry or the stack head,
    // but the stack head itself is also hot, so we
    // don't have to test it
    if (last.isHot()) {
      break;
    }
    // the cold entry is still in the queue
    removeFromStack(last);
  }
}
origin: org.wowtools/h2

/**
 * Ensure the last entry of the stack is cold.
 */
private void pruneStack() {
  while (true) {
    Entry<V> last = stack.stackPrev;
    // must stop at a hot entry or the stack head,
    // but the stack head itself is also hot, so we
    // don't have to test it
    if (last.isHot()) {
      break;
    }
    // the cold entry is still in the queue
    removeFromStack(last);
  }
}
origin: com.h2database/h2

usedMemory -= e.memory;
if (e.stackNext != null) {
  removeFromStack(e);
origin: com.h2database/h2-mvstore

/**
 * Ensure the last entry of the stack is cold.
 */
private void pruneStack() {
  while (true) {
    Entry<V> last = stack.stackPrev;
    // must stop at a hot entry or the stack head,
    // but the stack head itself is also hot, so we
    // don't have to test it
    if (last.isHot()) {
      break;
    }
    // the cold entry is still in the queue
    removeFromStack(last);
  }
}
origin: org.wowtools/h2

usedMemory -= e.memory;
if (e.stackNext != null) {
  removeFromStack(e);
origin: com.h2database/h2-mvstore

  removeFromStack(e);
  if (wasEnd) {
removeFromStack(e);
origin: org.wowtools/h2

  removeFromStack(e);
  if (wasEnd) {
removeFromStack(e);
origin: com.eventsourcing/h2

  removeFromStack(e);
  if (wasEnd) {
removeFromStack(e);
origin: com.h2database/h2

  removeFromStack(e);
  if (wasEnd) {
removeFromStack(e);
origin: com.eventsourcing/h2

usedMemory -= e.memory;
if (e.stackNext != null) {
  removeFromStack(e);
origin: com.h2database/h2-mvstore

usedMemory -= e.memory;
if (e.stackNext != null) {
  removeFromStack(e);
origin: org.wowtools/h2

private void convertOldestHotToCold() {
  // the last entry of the stack is known to be hot
  Entry<V> last = stack.stackPrev;
  if (last == stack) {
    // never remove the stack head itself (this would mean the
    // internal structure of the cache is corrupt)
    throw new IllegalStateException();
  }
  // remove from stack - which is done anyway in the stack pruning,
  // but we can do it here as well
  removeFromStack(last);
  // adding an entry to the queue will make it cold
  addToQueue(queue, last);
  pruneStack();
}
org.h2.mvstore.cacheCacheLongKeyLIRS$SegmentremoveFromStack

Javadoc

Remove the entry from the stack. The head itself must not be removed.

Popular methods of CacheLongKeyLIRS$Segment

  • <init>
    Create a new cache segment from an existing one. The caller must synchronize on the old segment, to
  • access
    Access an item, moving the entry to the top of the stack or front of the queue if found.
  • addToMap
  • addToQueue
  • addToStack
  • addToStackBottom
  • containsKey
    Check whether there is a resident entry for the given key. This method does not adjust the internal
  • convertOldestHotToCold
  • copy
  • evict
    Evict cold entries (resident and non-resident) until the memory limit is reached. The new entry is a
  • evictBlock
  • find
    Try to find an entry in the map.
  • evictBlock,
  • find,
  • get,
  • getMemory,
  • getNewMapLen,
  • keySet,
  • keys,
  • pruneStack,
  • put,
  • remove

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • findViewById (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now