/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
/** * Get the size of local thread memory pool. * * @return the size of local thread memory pool. */ public int getReadyThreadBufferSize() { ThreadLocalPool threadLocalPool = getThreadLocalPool(); if (threadLocalPool != null) { return threadLocalPool.remaining(); } return 0; }
protected HeapBuffer allocateHeapBufferAtLeast(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); remaining = threadLocalCache.remaining(); } return (HeapBuffer) allocateFromPool(threadLocalCache, remaining); } else { return createTrimAwareBuffer(size); } }
protected HeapBuffer allocateHeapBuffer(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { final int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); } return (HeapBuffer) allocateFromPool(threadLocalCache, size); } else { return createTrimAwareBuffer(size); } }
protected HeapBuffer allocateHeapBuffer(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { final int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); } return (HeapBuffer) allocateFromPool(threadLocalCache, size); } else { return createTrimAwareBuffer(size); } }
protected HeapBuffer allocateHeapBuffer(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { final int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); } return (HeapBuffer) allocateFromPool(threadLocalCache, size); } else { return createTrimAwareBuffer(size); } }
protected HeapBuffer allocateHeapBuffer(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { final int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); } return (HeapBuffer) allocateFromPool(threadLocalCache, size); } else { return createTrimAwareBuffer(size); } }
protected HeapBuffer allocateHeapBuffer(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { final int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); } return (HeapBuffer) allocateFromPool(threadLocalCache, size); } else { return createTrimAwareBuffer(size); } }
protected HeapBuffer allocateHeapBuffer(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { final int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); } return (HeapBuffer) allocateFromPool(threadLocalCache, size); } else { return createTrimAwareBuffer(size); } }
protected HeapBuffer allocateHeapBuffer(final int size) { if (size > maxBufferSize) { // Don't use pool return createTrimAwareBuffer(size); } final ThreadLocalPool<HeapBuffer> threadLocalCache = getHeapBufferThreadLocalPool(); if (threadLocalCache != null) { final int remaining = threadLocalCache.remaining(); if (remaining == 0 || remaining < size) { reallocatePoolBuffer(); } return (HeapBuffer) allocateFromPool(threadLocalCache, size); } else { return createTrimAwareBuffer(size); } }