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

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

Best Java code snippets using org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.addHistory (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: 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: 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.mule.glassfish.grizzly/grizzly-framework

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
origin: org.glassfish.grizzly/grizzly-core

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
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 allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
origin: javaee/grizzly

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
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-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 allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
origin: javaee/grizzly

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
origin: javaee/grizzly

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
origin: javaee/grizzly

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
origin: javaee/grizzly

@Override
public ByteBuffer allocate(int size) {
  final ByteBuffer allocated = Buffers.slice(pool, size);
  return addHistory(allocated);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

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

Popular methods of ByteBufferManager$ByteBufferThreadLocalPool

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
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