internal virtual void ReleaseLogBuffers(LogBuffers logBuffers, long registrationId) { if (logBuffers.DecRef() == 0) { logBuffers.TimeOfLastStateChange(_nanoClock.NanoTime()); _logBuffersByIdMap.Remove(registrationId); _lingeringResources.Add(logBuffers); } }
internal void ReleaseLogBuffers(LogBuffers logBuffers, long registrationId) { if (logBuffers.DecRef() == 0) { logBuffers.LingerDeadlineNs(_nanoClock.NanoTime() + _ctx.ResourceLingerDurationNs()); _logBuffersByIdMap.Remove(registrationId); _lingeringLogBuffers.Add(logBuffers); } }