public final class SignalOffloaders
extends java.lang.Object
SignalOffloader
s.Modifier and Type | Method and Description |
---|---|
static SignalOffloaderFactory |
defaultOffloaderFactory()
Return a default
SignalOffloaderFactory . |
static boolean |
hasThreadAffinity(Executor executor)
Returns
true if the passed Executor honors thread affinity. |
static SignalOffloader |
newOffloaderFor(Executor executor)
Create a new instance of
SignalOffloader using the passed executor . |
static SignalOffloader |
newTaskBasedOffloader(Executor executor)
Create a new instance of
SignalOffloader using the passed executor that uses granular tasks for
sending signals. |
static SignalOffloader |
newThreadBasedOffloader(Executor executor)
Create a new instance of
SignalOffloader using the passed executor that captures a thread for
its lifetime. |
static SignalOffloaderFactory |
taskBasedOffloaderFactory()
Return a
SignalOffloaderFactory that uses granular tasks for sending signals. |
static SignalOffloaderFactory |
threadBasedOffloaderFactory()
Return a
SignalOffloaderFactory with thread affinity. |
public static SignalOffloaderFactory defaultOffloaderFactory()
SignalOffloaderFactory
.SignalOffloaderFactory
.public static SignalOffloaderFactory threadBasedOffloaderFactory()
SignalOffloaderFactory
with thread affinity.SignalOffloaderFactory
with thread affinity..public static SignalOffloaderFactory taskBasedOffloaderFactory()
SignalOffloaderFactory
that uses granular tasks for sending signals.SignalOffloaderFactory
that uses granular tasks for sending signals.public static SignalOffloader newOffloaderFor(Executor executor)
SignalOffloader
using the passed executor
.executor
- Executor
to be used by the returned SignalOffloader
to offload signals.SignalOffloader
.public static SignalOffloader newTaskBasedOffloader(Executor executor)
SignalOffloader
using the passed executor
that uses granular tasks for
sending signals.executor
- Executor
to be used by the returned SignalOffloader
to offload signals.SignalOffloader
.public static SignalOffloader newThreadBasedOffloader(Executor executor)
SignalOffloader
using the passed executor
that captures a thread for
its lifetime.executor
- Executor
to be used by the returned SignalOffloader
to offload signals.SignalOffloader
.