Tabnine Logo
ByteBufferManager$ByteBufferThreadLocalPool
Code IndexAdd Tabnine to your IDE (free)

How to use
ByteBufferManager$ByteBufferThreadLocalPool
in
org.glassfish.grizzly.memory

Best Java code snippets using org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool (Showing top 20 results out of 315)

origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public ByteBuffer reallocate(ByteBuffer oldByteBuffer, int newSize) {
  if (isLastAllocated(oldByteBuffer)
      && remaining() + oldByteBuffer.capacity() >= newSize) {
    lastAllocatedIndex--;
    pool.position(pool.position() - oldByteBuffer.capacity());
    final ByteBuffer newByteBuffer = Buffers.slice(pool, newSize);
    newByteBuffer.position(oldByteBuffer.position());
    return addHistory(newByteBuffer);
  }
  return null;
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public boolean wantReset(int size) {
  return !hasRemaining() ||
      (lastAllocatedIndex == 0 && pool.remaining() < size);
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public boolean release(ByteBuffer underlyingBuffer) {
  if (isLastAllocated(underlyingBuffer)) {
    pool.position(pool.position() - underlyingBuffer.capacity());
    allocationHistory[--lastAllocatedIndex] = null;
    return true;
  } else if (wantReset(underlyingBuffer.capacity())) {
    reset(underlyingBuffer);
    return true;
  }
  return false;
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: org.glassfish.grizzly/grizzly-core

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: javaee/grizzly

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: javaee/grizzly

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: javaee/grizzly

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: javaee/grizzly

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: org.glassfish.grizzly/grizzly-core

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: javaee/grizzly

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: javaee/grizzly

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: javaee/grizzly

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: javaee/grizzly

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
origin: javaee/grizzly

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public ThreadLocalPool createThreadLocalPool() {
  return new ByteBufferThreadLocalPool();
}
origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
org.glassfish.grizzly.memoryByteBufferManager$ByteBufferThreadLocalPool

Javadoc

Information about thread associated memory pool.

Most used methods

  • <init>
  • addHistory
  • hasRemaining
  • isLastAllocated
  • remaining
  • reset
  • wantReset

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Runner (org.openjdk.jmh.runner)
  • 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