public static class UnfairExecutor.TaskHashXorTimeStripeGenerator extends java.lang.Object implements UnfairExecutor.TaskStripeGenerator
Clock.lastKnownTimeNanos(). This is the fastest built in option, however submissions of the same task many times without the clock being updated can result in a single thread being unfairly burdened. Because of that it is highly recommended to over-size your pool if you are using this distributor.
A possibly more fair, but slower stripe generator would be
This class should not be constructed, instead it should be provided via the static function
|Modifier and Type||Method and Description|
Generate an identifier for the stripe to distribute the task on to.
Provides an instance which can be provided into the constructor of
public static UnfairExecutor.TaskHashXorTimeStripeGenerator instance()
public long getStripe(java.lang.Runnable task)