- shutdown() - Method in interface org.tools4j.nobark.loop.Shutdownable
-
Initiates an orderly shutdown in which the service will be continue to perform its duties
as long as there is work to be done.
- shutdown() - Method in class org.tools4j.nobark.loop.ShutdownableThread
-
- Shutdownable - Interface in org.tools4j.nobark.loop
-
Shutdownable is a running service such as a thread that can be shutdown orderly or abruptly in a way similar to
ExecutorService.
- ShutdownableThread - Class in org.tools4j.nobark.loop
-
A thread that performs a main
runnable in a new thread and another shutdown runnable the
graceful
ShutdownableThread.shutdown() phase of the thread.
- ShutdownableThread(Function<BooleanSupplier, Runnable>, Function<BooleanSupplier, Runnable>, ThreadFactory) - Constructor for class org.tools4j.nobark.loop.ShutdownableThread
-
Constructor for shutdownable thread; it is recommended to use the static start(..) methods instead.
- shutdownLoop(LoopCondition, IdleStrategy, ExceptionHandler, StepProvider...) - Static method in class org.tools4j.nobark.loop.Loop
-
Static factory method creating a loop with
shutdown steps using
the given providers to construct the loop steps.
- shutdownNow() - Method in interface org.tools4j.nobark.loop.Shutdownable
-
Initiates an immediate shutdown in which the service will stop even if there is more work
to be done.
- shutdownNow() - Method in class org.tools4j.nobark.loop.ShutdownableThread
-
- shutdownStep(StepProvider) - Static method in interface org.tools4j.nobark.loop.StepProvider
-
Returns a shutdown step using the given supplier.
- silenceDuringShutdown(Step) - Static method in interface org.tools4j.nobark.loop.StepProvider
-
Returns a provider for the given step used only for the normal phase; a
no-OP is returned for
the shutdown phase.
- size() - Method in class org.tools4j.nobark.queue.AtomicConflationQueue
-
- size() - Method in interface org.tools4j.nobark.queue.ConflationQueue
-
Returns the number of elements in this queue.
- size() - Method in class org.tools4j.nobark.queue.EvictConflationQueue
-
- size() - Method in class org.tools4j.nobark.queue.MergeConflationQueue
-
- start(IdleStrategy, ExceptionHandler, ThreadFactory, Step...) - Static method in class org.tools4j.nobark.loop.Loop
-
Creates, starts and returns a new thread running a loop with the given steps.
- start(IdleStrategy, ExceptionHandler, ThreadFactory, StepProvider...) - Static method in class org.tools4j.nobark.loop.Loop
-
Creates, starts and returns a new thread running first a main loop and then another shutdown loop during the
graceful
shutdown phase.
- start(Function<BooleanSupplier, Runnable>, Function<BooleanSupplier, Runnable>, ThreadFactory) - Static method in class org.tools4j.nobark.loop.ShutdownableThread
-
Creates, starts and returns a new shutdownable thread.
- start(Function<BooleanSupplier, Runnable>, ThreadFactory) - Static method in class org.tools4j.nobark.loop.StoppableThread
-
Creates, starts and returns a new shutdownable thread.
- Step - Interface in org.tools4j.nobark.loop
-
Step is similar to Runnable but returns true if substantial work has been performed.
- StepProvider - Interface in org.tools4j.nobark.loop
-
Provider for
Step distinguishing between normal (main loop) steps and shutdown steps that are used during the
termination phase of a
ShutdownableThread as returned by
Loop#start(..).
- stop() - Method in interface org.tools4j.nobark.loop.Stoppable
-
Stops the service.
- stop() - Method in class org.tools4j.nobark.loop.StoppableThread
-
- Stoppable - Interface in org.tools4j.nobark.loop
-
Stoppable is a running service such as a thread that can be stopped either by calling
stop or via
Stoppable.close() method of
AutoCloseable.
- StoppableThread - Class in org.tools4j.nobark.loop
-
A thread that performs a runnable in a new thread.
- StoppableThread(Function<BooleanSupplier, Runnable>, ThreadFactory) - Constructor for class org.tools4j.nobark.loop.StoppableThread
-
Constructor for stoppable thread; it is recommended to use the static start(..) methods instead.