@Override protected final void deallocate() { // We need to first store a reference to the parent before recycle this instance. This is needed as // otherwise it is possible that the same AbstractPooledDerivedByteBuf is again obtained and init(...) is // called before we actually have a chance to call release(). This leads to call release() on the wrong parent. ByteBuf parent = this.parent; recyclerHandle.recycle(this); parent.release(); }
private void recycle() { this.signal = null; this.subscriber = null; handle.recycle(this); } }
public void recycle() { clear(); handle.recycle(this); } }
/** * Clear and recycle this instance. */ public boolean recycle() { msg = null; promise = null; handle.recycle(this); return true; }
@Override protected void deallocate() { if (capacity() > THREAD_LOCAL_BUFFER_SIZE) { super.deallocate(); } else { clear(); handle.recycle(this); } } }
private void recycle() { this.endpoint = null; this.sentCommand = null; this.sentCommands = null; handle.recycle(this); } }
private void recycle() { this.signal = null; this.subscriber = null; handle.recycle(this); } }
private void recycle() { size = 0; next = null; msg = null; promise = null; handle.recycle(this); } }
void recycle() { chunk = null; handle = -1; recyclerHandle.recycle(this); } }
@Override protected void deallocate() { if (capacity() > THREAD_LOCAL_BUFFER_SIZE) { super.deallocate(); } else { clear(); handle.recycle(this); } } }
public void recycle() { buf = null; recyclerHandle.recycle(this); }
public void recycle() { cursor = null; readPosition = null; callback = null; ctx = null; entries = null; nextReadPosition = null; recyclerHandle.recycle(this); }
public void recycle() { this.buf = null; if (recyclerHandle != null) { recyclerHandle.recycle(this); } }
@Override protected void deallocate() { // This method is called whenever the ref-count of the EntryImpl reaches 0, so that now we can recycle it data.release(); data = null; ledgerId = -1; entryId = -1; recyclerHandle.recycle(this); }
public void recycle() { msgMetadataBuilder = null; messageId = null; topic = null; payload = null; properties = null; if (recyclerHandle != null) { recyclerHandle.recycle(this); } }
@Override public void release() { msgMetadata.release(); msgMetadata = null; if (singleMessageMetadata != null) { singleMessageMetadata.recycle(); singleMessageMetadata = null; } payload.release(); handle.recycle(this); }
private void recycle() { producer = null; cnx = null; cmd = null; sequenceId = -1; recyclerHandle.recycle(this); }
@Override protected void deallocate() { b1.release(); b2.release(); b1 = b2 = null; recyclerHandle.recycle(this); }
void recycle() { msg = null; msgs = null; cmd = null; callback = null; sequenceId = -1; createdAt = -1; recyclerHandle.recycle(this); }
private void recycle() { recyclerHandle.recycle(this); }