Tabnine Logo
HeapMemoryManager$HeapBufferThreadLocalPool.reduceLastAllocated
Code IndexAdd Tabnine to your IDE (free)

How to use
reduceLastAllocated
method
in
org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool

Best Java code snippets using org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.reduceLastAllocated (Showing top 12 results out of 315)

origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: org.glassfish.grizzly/grizzly-core

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
origin: javaee/grizzly

@Override
public void trim() {
  checkDispose();
  final int sizeToReturn = cap - pos;
  if (sizeToReturn > 0) {
    final HeapBufferThreadLocalPool threadLocalCache =
        getHeapBufferThreadLocalPool();
    if (threadLocalCache != null) {
      if (threadLocalCache.isLastAllocated(this)) {
        flip();
        cap = lim;
        threadLocalCache.reduceLastAllocated(this);
        return;
      } else if (threadLocalCache.wantReset(sizeToReturn)) {
        flip();
        cap = lim;
        threadLocalCache.reset(heap, offset + cap, sizeToReturn);
        return;
      }
    }
  }
  super.trim();
}
org.glassfish.grizzly.memoryHeapMemoryManager$HeapBufferThreadLocalPoolreduceLastAllocated

Popular methods of HeapMemoryManager$HeapBufferThreadLocalPool

  • <init>
  • clearByteBufferCache
  • isLastAllocated
  • isReleasableLeft
  • remaining
  • reset
  • wantReset

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Reference (javax.naming)
  • JOptionPane (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now