@Override public void reset() { if (threadAttachment != null) { /** * ThreadAttachment was created during prev. processing and wasn't * detached. It could happen due to some error - we need to release * the ThreadAttachment association with the current thread */ threadAttachment.deassociate(); threadAttachment = null; } super.reset(); } }
@Override protected void reset() { if (threadAttachment != null) { /** * ThreadAttachment was created during prev. processing and wasn't * detached. It could happen due to some error - we need to release * the ThreadAttachment association with the current thread */ threadAttachment.deassociate(); } threadAttachment = null; super.reset(); } }
@Override protected void reset() { if (threadAttachment != null) { /** * ThreadAttachment was created during prev. processing and wasn't * detached. It could happen due to some error - we need to release * the ThreadAttachment association with the current thread */ threadAttachment.deassociate(); } threadAttachment = null; super.reset(); } }
@Override public void release(SelectionKey selectionKey) { attributes.clear(); reset(); deassociate(); super.release(selectionKey); }
@Override public void release(SelectionKey selectionKey) { attributes.clear(); reset(); deassociate(); super.release(selectionKey); }
@Override public void release(SelectionKey selectionKey) { attributes.clear(); reset(); deassociate(); super.release(selectionKey); } }
public ThreadAttachment detach() { ThreadAttachment currentAttachment = getAttachment(); int mode = currentAttachment.getMode(); updateAttachment(mode); // Re-create a new ByteBuffer if ((mode & Mode.BYTE_BUFFER) != 0) { byteBuffer = null; } if ((mode & Mode.SSL_ENGINE) != 0) { sslEngine = null; } if ((mode & Mode.INPUT_BB) != 0) { inputBB = null; } if ((mode & Mode.OUTPUT_BB) != 0) { outputBB = null; } // Switch to the new ThreadAttachment. this.threadAttachment = null; currentAttachment.deassociate(); return currentAttachment; }
public ThreadAttachment detach() { ThreadAttachment currentAttachment = getAttachment(); int mode = currentAttachment.getMode(); updateAttachment(mode); // Re-create a new ByteBuffer if ((mode & Mode.BYTE_BUFFER) != 0) { createByteBuffer(true); } if ((mode & Mode.SSL_ENGINE) != 0) { sslEngine = null; } if ((mode & Mode.INPUT_BB) != 0) { inputBB = null; } if ((mode & Mode.OUTPUT_BB) != 0) { outputBB = null; } // Switch to the new ThreadAttachment. this.threadAttachment = null; currentAttachment.deassociate(); return currentAttachment; }
public ThreadAttachment detach() { ThreadAttachment currentAttachment = getAttachment(); int mode = currentAttachment.getMode(); updateAttachment(mode); // Re-create a new ByteBuffer if ((mode & Mode.BYTE_BUFFER) != 0) { byteBuffer = ByteBufferFactory.allocate(byteBufferType, initialByteBufferSize); } if ((mode & Mode.SSL_ENGINE) != 0) { sslEngine = null; } if ((mode & Mode.INPUT_BB) != 0) { inputBB = null; } if ((mode & Mode.OUTPUT_BB) != 0) { outputBB = null; } // Switch to the new ThreadAttachment. this.threadAttachment = null; currentAttachment.deassociate(); return currentAttachment; }