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

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

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

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

@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: javaee/grizzly

@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: javaee/grizzly

@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-core

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

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

@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: javaee/grizzly

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
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: javaee/grizzly

@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: javaee/grizzly

@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-websockets-server

@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-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: javaee/grizzly

@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: javaee/grizzly

@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: javaee/grizzly

@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: javaee/grizzly

@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-websockets-server

@Override
public boolean hasRemaining() {
  return remaining() > 0;
}
org.glassfish.grizzly.memoryByteBufferManager$ByteBufferThreadLocalPoolremaining

Popular methods of ByteBufferManager$ByteBufferThreadLocalPool

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Collectors (java.util.stream)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for Android Studio
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