You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/10/09 04:23:46 UTC

[GitHub] [skywalking] ben-manes commented on issue #1358: Replace Caffeine with new expired mechanism in zipkin receiver

ben-manes commented on issue #1358: Replace Caffeine with new expired mechanism in zipkin receiver
URL: https://github.com/apache/skywalking/issues/1358#issuecomment-539821452
 
 
   fyi, you can set a scheduler thread to expire from the cache regardless of activity. By default the cache relies on user activity to trigger its periodic maintenance. For prompt expiration you can use the JDK9+ provided scheduling thread, e.g. `Caffeine.scheduler(Scheduler.systemScheduler())`. This will then schedule a single task based on the next expiration event in the internal queue. That task will then call `Cache.cleanUp()` to perform maintenance and evict as needed.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services