You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2023/01/20 10:54:27 UTC

[GitHub] [logging-log4j2] ppkarwasz commented on pull request #1194: Migrate Recycler API to log4j-api

ppkarwasz commented on PR #1194:
URL: https://github.com/apache/logging-log4j2/pull/1194#issuecomment-1398217767

   There is one `Recycler` usage case that is not covered by this PR: some objects like `LogBuilder` must be aware of the recycling lifecycle and be able to signal the recycler, when they are available.
   
   In the case of `LogBuilder` I imagine a sequence like this:
   
   - the logger acquires a `LogBuilder` from a `Recycler`,
   - the recycler calls `reset(Runnable release)` on the `LogBuilder`,
   - when the `log` method on the `LogBuilder` is called, the `LogBuilder` runs the `release` action.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org