public static < GROUP extends Serializable > ExecutorConfig < GROUP > basicGroupable ( ) { return new ExecutorConfig < GROUP > ( ) . withTaskIdAdapter ( ( TaskIdAdapter < Groupable < GROUP > , GROUP , ? > ) new DefaultGroupableTaskIdAdapter < GROUP > ( ) ) ; }
This configuration requires that all your tasks you submit to the system implement the Groupable interface . By default it will round robin tasks from each group