/** * {@inheritDoc} */ @Override public void release(final Buffer buffer) { buffer.tryDispose(); }
/** * {@inheritDoc} */ @Override public void release(final Buffer buffer) { buffer.tryDispose(); }
@Override public void release() { if (!isClosed) { isClosed = true; buffer.tryDispose(); } } }
@Override public void release() { if (!isClosed) { isClosed = true; buffer.tryDispose(); } } }
/** * {@inheritDoc} */ @Override public void release(final Buffer buffer) { buffer.tryDispose(); }
/** * {@inheritDoc} */ @Override public void release(final Buffer buffer) { buffer.tryDispose(); }
@Override public void release() { if (!isClosed) { isClosed = true; buffer.tryDispose(); } } }
@Override public void release() { if (!isClosed) { isClosed = true; buffer.tryDispose(); } } }
/** * {@inheritDoc} */ @Override public void release(final Buffer buffer) { buffer.tryDispose(); }
static Buffer move(final MemoryManager memoryManager, final Buffer buffer) { final Buffer tmpBuf = copy(memoryManager, buffer); buffer.tryDispose(); return tmpBuf; }
static Buffer move(final MemoryManager memoryManager, final Buffer buffer) { final Buffer tmpBuf = copy(memoryManager, buffer); buffer.tryDispose(); return tmpBuf; }
static Buffer move(final MemoryManager memoryManager, final Buffer buffer) { final Buffer tmpBuf = copy(memoryManager, buffer); buffer.tryDispose(); return tmpBuf; }
static Buffer move(final MemoryManager memoryManager, final Buffer buffer) { final Buffer tmpBuf = copy(memoryManager, buffer); buffer.tryDispose(); return tmpBuf; }
@SuppressWarnings("MethodMayBeStatic") protected Buffer wrapAll(final FilterChainContext ctx, final SSLConnectionContext sslCtx) throws SSLException { final Buffer input = ctx.getMessage(); final Buffer output = sslCtx.wrapAll(input, OUTPUT_BUFFER_ALLOCATOR); input.tryDispose(); return output; }
@SuppressWarnings("MethodMayBeStatic") protected Buffer wrapAll(final FilterChainContext ctx, final SSLConnectionContext sslCtx) throws SSLException { final Buffer input = ctx.getMessage(); final Buffer output = sslCtx.wrapAll(input, OUTPUT_BUFFER_ALLOCATOR); input.tryDispose(); return output; }
public void decode(final DecodingCallback callback) { if (inBuffer != null) { hpackDecoder.decode(inBuffer, !isProcessingHeaders(), callback); inBuffer.tryDispose(); inBuffer = null; } }
public void decode(final DecodingCallback callback) { if (inBuffer != null) { hpackDecoder.decode(inBuffer, !isProcessingHeaders(), callback); inBuffer.tryDispose(); inBuffer = null; } }
protected void updateInputContentBuffer(final Buffer buffer) { buffer.allowBufferDispose(true); if (inputContentBuffer == null) { inputContentBuffer = buffer; } else if (inputContentBuffer.hasRemaining() || readAheadLimit > 0) { // if the stream is marked - we can't dispose the inputContentBuffer, even if it's been read off toCompositeInputContentBuffer().append(buffer); } else { inputContentBuffer.tryDispose(); inputContentBuffer = buffer; } }
protected void updateInputContentBuffer(final Buffer buffer) { buffer.allowBufferDispose(true); if (inputContentBuffer == null) { inputContentBuffer = buffer; } else if (inputContentBuffer.hasRemaining() || readAheadLimit > 0) { // if the stream is marked - we can't dispose the inputContentBuffer, even if it's been read off toCompositeInputContentBuffer().append(buffer); } else { inputContentBuffer.tryDispose(); inputContentBuffer = buffer; } }
protected void updateInputContentBuffer(final Buffer buffer) { buffer.allowBufferDispose(true); if (inputContentBuffer == null) { inputContentBuffer = buffer; } else if (inputContentBuffer.hasRemaining() || readAheadLimit > 0) { // if the stream is marked - we can't dispose the inputContentBuffer, even if it's been read off toCompositeInputContentBuffer().append(buffer); } else { inputContentBuffer.tryDispose(); inputContentBuffer = buffer; } }