| Package | Description |
|---|---|
| de.skuzzle.inject.async |
Main public API.
|
| de.skuzzle.inject.async.internal.context | |
| de.skuzzle.inject.async.internal.runnables | |
| de.skuzzle.inject.async.internal.trigger |
Contains trigger implementations for scheduling methods.
|
| Modifier and Type | Method and Description |
|---|---|
ScheduledContext |
TriggerStrategy.schedule(Method method,
Object self,
ScheduledExecutorService executor,
ExceptionHandler handler)
Extracts scheduling information from the provided
Method and then schedules
invocations of that method according to the information. |
| Modifier and Type | Method and Description |
|---|---|
ScheduledContext |
ContextFactory.createContext(Method method)
Creates a new
ScheduledContext instance which can be used to manage a
single scheduled method. |
static ScheduledContext |
ScheduledContextHolder.getContext()
May be used to access the
ScheduledContext which is currently active for
the current thread. |
| Modifier and Type | Method and Description |
|---|---|
static void |
ScheduledContextHolder.push(ScheduledContext context)
Registers the given context to be active for the current thread.
|
| Modifier and Type | Method and Description |
|---|---|
LockableRunnable |
RunnableBuilder.createLockedRunnableStack(InjectedMethodInvocation invocation,
ScheduledContext context,
ExceptionHandler handler)
Like
RunnableBuilder.createRunnableStack(InjectedMethodInvocation, ScheduledContext, ExceptionHandler)
but creates a Runnable which must be released before it is able to be executed. |
Runnable |
RunnableBuilder.createRunnableStack(InjectedMethodInvocation invocation,
ScheduledContext context,
ExceptionHandler handler)
Creates a
Runnable for running an execution in the scope of a given
context and to handle errors with the given
ExceptionHandler. |
Reschedulable |
RunnableBuilder.reschedule(ScheduledContext context,
Runnable wrapped,
ScheduledExecutorService scheduler,
com.cronutils.model.time.ExecutionTime executionTime)
Creates a runnable that reschedules itself with the provided scheduler before
actually executing the given invocation.
|
Runnable |
RunnableBuilder.scope(Runnable unscoped,
ScheduledContext context)
Creates a runnable which wraps around another runnable and executes the wrapped
instance in the scope of the given
ExecutionContext. |
| Modifier and Type | Method and Description |
|---|---|
ScheduledContext |
SimpleTriggerStrategy.schedule(Method method,
Object self,
ScheduledExecutorService executor,
ExceptionHandler handler) |
ScheduledContext |
DelayedTriggerStrategy.schedule(Method method,
Object self,
ScheduledExecutorService executor,
ExceptionHandler handler) |
ScheduledContext |
CronTriggerStrategy.schedule(Method method,
Object self,
ScheduledExecutorService executor,
ExceptionHandler handler) |
Copyright © 2014–2018. All rights reserved.