Hi
Because discarding an exchange was bad in the first place, as it may have
some work it was supposed to execute when its done (UnitOfWork).
So use it with care to just discard it.
Yes, implement your own logic for what you want to do.
On Tue, Aug 15, 2023 at 9:54 PM Schmeier, Jannik
wrote:
Hi,
I've been using the following code for creating an executor service that
discards the oldest invocations when the queue is full.
ThreadPoolBuilder poolBuilder = new ThreadPoolBuilder(getContext());
singleSplitExecutorService =
poolBuilder.poolSize(1).maxPoolSize(1).maxQueueSize(200)