- Enclosing interface:
Bulkhead
public static interface Bulkhead.QueueListener
A Bulkhead listener for queueing operations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> void
Called after semaphore is acquired and before supplier is called.default <T> void
enqueueing
(Supplier<? extends T> supplier) Called right before blocking on the internal semaphore's queue.
-
Method Details
-
enqueueing
Called right before blocking on the internal semaphore's queue.- Type Parameters:
T
- type of value returned by supplier- Parameters:
supplier
- the supplier to be enqueued
-
dequeued
Called after semaphore is acquired and before supplier is called.- Type Parameters:
T
- type of value returned by supplier- Parameters:
supplier
- the supplier to execute
-