Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbortableTaskDecorator - Class in org.hawaiiframework.async
-
Task decorator to copy the MDC from the calling thread to the executing thread..
- AbortableTaskDecorator(ThreadPoolTaskExecutor, ScheduledThreadPoolExecutor) - Constructor for class org.hawaiiframework.async.AbortableTaskDecorator
-
Construct an instance.
- AbortableTaskRunnable - Class in org.hawaiiframework.async
-
Delegating Runnable that copies the MDC to the executing thread before running the delegate.
- AbortableTaskRunnable(Runnable, SharedTaskContext) - Constructor for class org.hawaiiframework.async.AbortableTaskRunnable
-
Construct a new instance.
- abortBusinessTask() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Invoke the
taskAbortStrategy. - AbortedHttpRequestInterceptor - Class in org.hawaiiframework.async.http
-
HTTP request interceptor to set a task id as a header on an HTTP request.
- AbortedHttpRequestInterceptor() - Constructor for class org.hawaiiframework.async.http.AbortedHttpRequestInterceptor
- AbortStrategyQueryExecutionListener - Class in org.hawaiiframework.async.sql
-
Query execution listener that registers an abort strategy for a task.
- AbortStrategyQueryExecutionListener() - Constructor for class org.hawaiiframework.async.sql.AbortStrategyQueryExecutionListener
- addExecutor(ExecutorProperties) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Convenience method to add properties for a single executor.
- addPropertyAlias(String, Class<?>, String) - Method in class org.hawaiiframework.async.YamlJavaBeanPropertyConstructor
-
Adds an alias for a JavaBean property name on a particular type.
- addSystem(SystemProperties) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Convenience method to add properties for a single system.
- addTask(TaskProperties) - Method in class org.hawaiiframework.async.model.SystemProperties
-
Convenience method to add properties for a single task.
- afterQuery(ExecutionInfo, List<QueryInfo>) - Method in class org.hawaiiframework.async.sql.AbortStrategyQueryExecutionListener
- ASYNC_TIMEOUT_EXECUTOR - Static variable in class org.hawaiiframework.async.AsyncExecutorConfiguration
-
Async (task) timeout executor bean name.
- AsyncCallable<T> - Interface in org.hawaiiframework.async
-
Interface to allow wrapping of an async call.
- AsyncExecutorConfiguration - Class in org.hawaiiframework.async
-
Configuration class to set up asynchronous executors.
- AsyncExecutorConfiguration() - Constructor for class org.hawaiiframework.async.AsyncExecutorConfiguration
- AsyncExecutorFactory - Class in org.hawaiiframework.async.config
-
Factory to create executors for the asynchronous execution of methods using the
Asyncannotation. - AsyncExecutorFactory(BeanRegistrar, ExecutorConfigurationProperties) - Constructor for class org.hawaiiframework.async.config.AsyncExecutorFactory
-
The constructor.
- AsyncExecutorInitializer - Class in org.hawaiiframework.async.config
-
Utility to initialize executors for the asynchronous execution of methods using the @
Asyncannotation. - AsyncExecutorInitializer(ConfigurableListableBeanFactory, ExecutorConfigurationProperties) - Constructor for class org.hawaiiframework.async.config.AsyncExecutorInitializer
-
The constructor.
- AsyncInvoke - Interface in org.hawaiiframework.async
-
Interface to allow wrapping of an async call.
- asyncMap(Collection<I>, Function<I, CompletableFuture<T>>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Applies the asynchronous
functionto each element ofinputs. - AsyncPropertiesLoader - Class in org.hawaiiframework.async
-
Helper class to actually load the async configuration properties from the configuration file.
- AsyncPropertiesLoader(String) - Constructor for class org.hawaiiframework.async.AsyncPropertiesLoader
-
Construct a loader for a configuration file.
- asyncStreamAndMap(Collection<I>, Function<I, CompletableFuture<T>>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Applies the asynchronous
functionto each element ofinputs. - asyncStreamAndMapToSingleList(Collection<I>, Function<I, CompletableFuture<List<T>>>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Applies the asynchronous
functionto each element ofinputs. - AsyncUtil - Class in org.hawaiiframework.async
-
Utility class to wrap an asynchronous call and catch all errors.
- awaitAndGet(List<CompletableFuture<T>>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Await the completion of all futures and return the futures' answers.
- awaitAndMapToSingleList(List<CompletableFuture<List<T>>>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Await the completion of the futures and return the results in one list.
- awaitCompletion(List<CompletableFuture<T>>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Await completion of the set of futures.
B
- BeanRegistrar - Class in org.hawaiiframework.async.config
-
Utility to add beans to Spring's bean definition registry.
- BeanRegistrar(BeanDefinitionRegistry) - Constructor for class org.hawaiiframework.async.config.BeanRegistrar
-
The constructor.
- beforeQuery(ExecutionInfo, List<QueryInfo>) - Method in class org.hawaiiframework.async.sql.AbortStrategyQueryExecutionListener
C
- create() - Method in class org.hawaiiframework.async.task.listener.KibanaLogFieldsTaskListenerFactory
- create() - Method in class org.hawaiiframework.async.task.listener.LoggingTaskListenerFactory
- create() - Method in interface org.hawaiiframework.async.task.listener.TaskListenerFactory
-
Create a task listener.
- createDelegatingExecutors() - Method in class org.hawaiiframework.async.config.DelegatingExecutorFactory
-
Create bean aliases for the configured systems.
- createExecutors() - Method in class org.hawaiiframework.async.config.AsyncExecutorFactory
-
Create executors from the configured executor properties.
D
- decorate(Runnable) - Method in class org.hawaiiframework.async.AbortableTaskDecorator
- DelegatingExecutor - Class in org.hawaiiframework.async
-
Task executor that delegates to the task executor configured for a task.
- DelegatingExecutor(ThreadPoolTaskExecutor, ExecutorConfigurationProperties, Collection<TaskListenerFactory>, String) - Constructor for class org.hawaiiframework.async.DelegatingExecutor
-
Constructor.
- DelegatingExecutorFactory - Class in org.hawaiiframework.async.config
-
Utility to initialize executors for the asynchronous execution of methods using the @
Asyncannotation. - DelegatingExecutorFactory(ConfigurableListableBeanFactory, BeanRegistrar, ExecutorConfigurationProperties, Set<String>) - Constructor for class org.hawaiiframework.async.config.DelegatingExecutorFactory
-
The constructor.
- doRun() - Method in class org.hawaiiframework.async.AbortableTaskRunnable
- doRun() - Method in class org.hawaiiframework.async.HawaiiAsyncRunnable
-
This method is executed by
Runnablerun. - doRun() - Method in class org.hawaiiframework.async.timeout.TimeoutGuardTask
E
- enqueue() - Method in class org.hawaiiframework.async.statistics.TaskStatistics
-
Set the timestamp the task is offered for execution.
- execute(Runnable) - Method in class org.hawaiiframework.async.DelegatingExecutor
- execute(Runnable, long) - Method in class org.hawaiiframework.async.DelegatingExecutor
-
Deprecated.
- ExecutorConfigurationProperties - Class in org.hawaiiframework.async.model
-
Configuration properties for the asynchronous execution.
- ExecutorConfigurationProperties() - Constructor for class org.hawaiiframework.async.model.ExecutorConfigurationProperties
- ExecutorProperties - Class in org.hawaiiframework.async.model
-
Configuration properties for a single executor.
- ExecutorProperties() - Constructor for class org.hawaiiframework.async.model.ExecutorProperties
- ExecutorStatistics - Class in org.hawaiiframework.async.statistics
-
Executor statistics.
- ExecutorStatistics(ThreadPoolTaskExecutor) - Constructor for class org.hawaiiframework.async.statistics.ExecutorStatistics
-
Create a new statistics instance for the
executor. - ExecutorStatisticsView - Class in org.hawaiiframework.async.statistics
-
A view on the
ExecutorStatistics. - ExecutorStatisticsView(ExecutorStatistics) - Constructor for class org.hawaiiframework.async.statistics.ExecutorStatisticsView
-
Create a view on
ExecutorStatistics.
F
- finish() - Method in class org.hawaiiframework.async.task.listener.KibanaLogFieldsTaskListener
- finish() - Method in class org.hawaiiframework.async.task.listener.LoggingTaskListener
- finish() - Method in interface org.hawaiiframework.async.task.listener.TaskListener
-
Called just after a task is finished.
- finish() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
This method is invoked when the guarded task is finished.
G
- get() - Static method in class org.hawaiiframework.async.timeout.SharedTaskContextHolder
-
Getter for #sharedTaskAbortStrategy.
- get(CompletableFuture<T>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Delegates to
CompletableFuture.get(). - get(CompletableFuture<T>, Long, TimeUnit) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Delegates to
CompletableFuture.get(long, TimeUnit)}. - getAbortedTaskCount() - Method in class org.hawaiiframework.async.statistics.ExecutorStatistics
-
Get the number of aborted tasks.
- getAbortedTaskCount() - Method in class org.hawaiiframework.async.statistics.ExecutorStatisticsView
-
Get the number of aborted tasks.
- getActiveCount() - Method in class org.hawaiiframework.async.DelegatingExecutor
-
For testing purposes.
- getAsyncExecutor() - Method in class org.hawaiiframework.async.AsyncExecutorConfiguration
- getAsyncTimeoutExecutorPoolSize() - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Getter for the async task timeout executor pool size.
- getAsyncUncaughtExceptionHandler() - Method in class org.hawaiiframework.async.AsyncExecutorConfiguration
- getCompletedTaskCount() - Method in class org.hawaiiframework.async.statistics.ExecutorStatistics
-
Get the number of completed tasks.
- getCompletedTaskCount() - Method in class org.hawaiiframework.async.statistics.ExecutorStatisticsView
-
Get the number of completed tasks.
- getCorePoolSize() - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Getter for core pool size.
- getDefaultExecutor() - Method in class org.hawaiiframework.async.config.AsyncExecutorInitializer
-
Get the executor to configure.
- getDefaultExecutor() - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Getter for the default executor.
- getDefaultExecutor() - Method in class org.hawaiiframework.async.model.SystemProperties
-
Getter for the default executor.
- getDefaultTimeout() - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Getter for default timeout.
- getDefaultTimeout() - Method in class org.hawaiiframework.async.model.SystemProperties
-
Getter for the default timeout.
- getExecutionTime() - Method in class org.hawaiiframework.async.statistics.TaskStatistics
-
Get the time (in nano seconds) the task was executing.
- getExecutor() - Method in class org.hawaiiframework.async.model.TaskProperties
-
Getter for executor.
- getExecutorNames() - Method in class org.hawaiiframework.async.config.AsyncExecutorFactory
-
Get the executor names.
- getExecutors() - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Getter for the executors.
- getExecutorStatistics() - Method in class org.hawaiiframework.async.DelegatingExecutor
-
Return the view on the statistics.
- getKeepAliveTime() - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Getter for keep-alive time.
- getMaxPendingRequests() - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Getter for max pending requests.
- getMaxPoolSize() - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Getter for max pool size.
- getMaxPoolSize() - Method in class org.hawaiiframework.async.statistics.ExecutorStatistics
-
Get the executor's max pool size.
- getMaxPoolSize() - Method in class org.hawaiiframework.async.statistics.ExecutorStatisticsView
-
Get the executor's max pool size.
- getMethod() - Method in class org.hawaiiframework.async.model.TaskProperties
-
Getter for method name.
- getName() - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Getter for name.
- getName() - Method in class org.hawaiiframework.async.model.SystemProperties
-
Getter for name.
- getNow(CompletableFuture<T>, T) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Delegates to
CompletableFuture.getNow(Object). - getOrder() - Method in class org.hawaiiframework.async.sql.AbortStrategyQueryExecutionListener
- getOrder() - Method in class org.hawaiiframework.async.task.listener.KibanaLogFieldsTaskListener
- getOrder() - Method in class org.hawaiiframework.async.task.listener.LoggingTaskListener
- getPoolSize() - Method in class org.hawaiiframework.async.statistics.ExecutorStatistics
-
Get the executor's pool size.
- getPoolSize() - Method in class org.hawaiiframework.async.statistics.ExecutorStatisticsView
-
Get the executor's pool size.
- getQueueSize() - Method in class org.hawaiiframework.async.statistics.ExecutorStatistics
-
Get the executor's queued task size.
- getQueueSize() - Method in class org.hawaiiframework.async.statistics.ExecutorStatisticsView
-
Get the executor's queued task size.
- getQueueTime() - Method in class org.hawaiiframework.async.statistics.TaskStatistics
-
Get the time (in nano seconds) the task was in the queue.
- getSystemPropertiesForName(String) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Retrieve the properties for the system with the given name.
- getSystems() - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Getter for the systems.
- getTaskId() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Get the task's id.
- getTaskId() - Static method in class org.hawaiiframework.async.timeout.SharedTaskContextHolder
-
Return the task id for the current thread's task.
- getTaskName() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Retrieve the task's name.
- getTaskPropertiesForName(String) - Method in class org.hawaiiframework.async.model.SystemProperties
-
Retrieve the properties for a named task.
- getTasks() - Method in class org.hawaiiframework.async.model.SystemProperties
-
Getter for the tasks.
- getTaskStatistics() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Return the task's execution statistics.
- getTaskTimeout(String) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Determine the timeout for a task.
- getTimeout() - Method in class org.hawaiiframework.async.model.TaskProperties
-
Getter for timeout.
- getTimeout() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Get the timeout for the task this strategy is for.
- getTotalTime() - Method in class org.hawaiiframework.async.statistics.TaskStatistics
-
Get the time (in nano seconds) the task took from start (offer / queue) to completion.
H
- hasDelegate(ThreadPoolTaskExecutor) - Method in class org.hawaiiframework.async.DelegatingExecutor
-
For testing purposes.
- HawaiiAsyncRunnable - Class in org.hawaiiframework.async
-
This class will handle all administrative calls which need to be done for every call.
- HawaiiAsyncRunnable(SharedTaskContext) - Constructor for class org.hawaiiframework.async.HawaiiAsyncRunnable
-
Constructor.
- HawaiiHttpComponentsClientHttpRequestFactory - Class in org.hawaiiframework.async.http
-
An HTTP request factory that sets the
TaskAbortStrategyfor the request. - HawaiiHttpComponentsClientHttpRequestFactory() - Constructor for class org.hawaiiframework.async.http.HawaiiHttpComponentsClientHttpRequestFactory
- HawaiiTaskExecutionException - Exception in org.hawaiiframework.async.exception
-
Exception thrown when a task's
CompletableFuture.get()throws an error. - HawaiiTaskExecutionException() - Constructor for exception org.hawaiiframework.async.exception.HawaiiTaskExecutionException
-
Constructs a new
HawaiiTaskExecutionException. - HawaiiTaskExecutionException(String) - Constructor for exception org.hawaiiframework.async.exception.HawaiiTaskExecutionException
-
Constructs a new
HawaiiTaskExecutionExceptionwith the suppliedmessage. - HawaiiTaskExecutionException(String, Throwable) - Constructor for exception org.hawaiiframework.async.exception.HawaiiTaskExecutionException
-
Constructs a new
HawaiiTaskExecutionExceptionwith the suppliedmessageandcause. - HawaiiTaskExecutionException(Throwable) - Constructor for exception org.hawaiiframework.async.exception.HawaiiTaskExecutionException
-
Constructs a new
HawaiiTaskExecutionExceptionwith the suppliedcause. - HttpComponentHttpRequestTaskAbortStrategy - Class in org.hawaiiframework.async.http
-
Strategy to abort and Http Components HTTP request.
- HttpComponentHttpRequestTaskAbortStrategy(HttpUriRequest) - Constructor for class org.hawaiiframework.async.http.HttpComponentHttpRequestTaskAbortStrategy
-
Construct a new instance with the
requestwe may have to abort.
I
- incrementAbortedTaskCount() - Method in class org.hawaiiframework.async.statistics.ExecutorStatistics
-
Increase the number of aborted tasks.
- initializeExecutors() - Method in class org.hawaiiframework.async.config.AsyncExecutorInitializer
-
Initialize all configured executors in the bean factory and determine the default executor.
- intercept(HttpRequest, byte[], ClientHttpRequestExecution) - Method in class org.hawaiiframework.async.http.AbortedHttpRequestInterceptor
- intercept(HttpRequest, byte[], ClientHttpRequestExecution) - Method in class org.hawaiiframework.async.http.TaskIdSupplierHttpRequestInterceptor
- invoke() - Method in interface org.hawaiiframework.async.AsyncCallable
-
The call to invoke asynchronously.
- invoke() - Method in interface org.hawaiiframework.async.AsyncInvoke
-
The call to invoke asynchronously.
- invoke() - Method in class org.hawaiiframework.async.http.HttpComponentHttpRequestTaskAbortStrategy
- invoke() - Method in class org.hawaiiframework.async.sql.QueryTaskAbortStrategy
- invoke() - Method in interface org.hawaiiframework.async.timeout.TaskAbortStrategy
-
Invoke the strategy in order to abort the task (that registered this abort strategy).
- invoke() - Method in class org.hawaiiframework.async.timeout.TaskRemoveStrategy
- invoke(boolean, AsyncCallable<T>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Invoke the body and return the response wrapped as a future.
- invoke(AsyncCallable<T>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Invoke the body and return the response wrapped as a future.
- invoke(AsyncInvoke) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Invoke the body and return the response wrapped as a future.
- isAborted() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Whether the task has been aborted or not..
- isNameMatch(String) - Method in class org.hawaiiframework.async.model.TaskProperties
-
Determine if this TaskProperties' name matches the given name.
K
- KibanaLogFieldsTaskListener - Class in org.hawaiiframework.async.task.listener
-
Task listener for Kibana log fields.
- KibanaLogFieldsTaskListener() - Constructor for class org.hawaiiframework.async.task.listener.KibanaLogFieldsTaskListener
-
The constructor.
- kibanaLogFieldsTaskListenerFactory() - Method in class org.hawaiiframework.async.task.listener.TaskListenerFactoryConfiguration
-
Kibana log fields listener.
- KibanaLogFieldsTaskListenerFactory - Class in org.hawaiiframework.async.task.listener
-
Task listener factory for Kibana log fields.
- KibanaLogFieldsTaskListenerFactory() - Constructor for class org.hawaiiframework.async.task.listener.KibanaLogFieldsTaskListenerFactory
L
- loadProperties() - Method in class org.hawaiiframework.async.AsyncPropertiesLoader
-
Load the properties from the configuration file.
- LoggingTaskListener - Class in org.hawaiiframework.async.task.listener
-
Task listener that logs start and end calls.
- LoggingTaskListener() - Constructor for class org.hawaiiframework.async.task.listener.LoggingTaskListener
- loggingTaskListenerFactory() - Method in class org.hawaiiframework.async.task.listener.TaskListenerFactoryConfiguration
-
Logging listener, logs the start, end and statistics of a task.
- LoggingTaskListenerFactory - Class in org.hawaiiframework.async.task.listener
-
Factory for logging task events.
- LoggingTaskListenerFactory() - Constructor for class org.hawaiiframework.async.task.listener.LoggingTaskListenerFactory
N
- nameMatches(String) - Method in class org.hawaiiframework.async.model.SystemProperties
-
Check if this
SystemPropertiesname matches the given name.
O
- org.hawaiiframework.async - package org.hawaiiframework.async
- org.hawaiiframework.async.config - package org.hawaiiframework.async.config
- org.hawaiiframework.async.exception - package org.hawaiiframework.async.exception
- org.hawaiiframework.async.http - package org.hawaiiframework.async.http
- org.hawaiiframework.async.model - package org.hawaiiframework.async.model
- org.hawaiiframework.async.sql - package org.hawaiiframework.async.sql
- org.hawaiiframework.async.statistics - package org.hawaiiframework.async.statistics
- org.hawaiiframework.async.task.listener - package org.hawaiiframework.async.task.listener
- org.hawaiiframework.async.timeout - package org.hawaiiframework.async.timeout
P
- postProcessBeanDefinitionRegistry(BeanDefinitionRegistry) - Method in class org.hawaiiframework.async.AsyncExecutorConfiguration
- postProcessBeanFactory(ConfigurableListableBeanFactory) - Method in class org.hawaiiframework.async.AsyncExecutorConfiguration
- postProcessHttpRequest(ClassicHttpRequest) - Method in class org.hawaiiframework.async.http.HawaiiHttpComponentsClientHttpRequestFactory
- prefersShortLivedTasks() - Method in class org.hawaiiframework.async.DelegatingExecutor
Q
- QueryTaskAbortStrategy - Class in org.hawaiiframework.async.sql
-
A query abort strategy.
- QueryTaskAbortStrategy(Statement) - Constructor for class org.hawaiiframework.async.sql.QueryTaskAbortStrategy
-
Create a new instance for the given
statement.
R
- register(SharedTaskContext) - Static method in class org.hawaiiframework.async.timeout.SharedTaskContextHolder
-
Initialize the
SharedTaskContextHolderwith thesharedTaskContext. - registerBean(String, Class<?>) - Method in class org.hawaiiframework.async.config.BeanRegistrar
-
Create a
GenericBeanDefinitionof the specified class and register it with the registry. - registerBean(String, Class<?>, ConstructorArgumentValues) - Method in class org.hawaiiframework.async.config.BeanRegistrar
-
Create a
GenericBeanDefinitionof the specified class and register it with the registry. - remove() - Static method in class org.hawaiiframework.async.timeout.SharedTaskContextHolder
-
Removes the current
SharedTaskContextfrom the ThreadLocal store. - run() - Method in class org.hawaiiframework.async.HawaiiAsyncRunnable
S
- setAsyncPropertiesLoader(AsyncPropertiesLoader) - Method in class org.hawaiiframework.async.AsyncExecutorConfiguration
-
Setter for the properties loaded.
- setAsyncTimeoutExecutorPoolSize(Integer) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Setter for the async task timeout executor pool size.
- setCorePoolSize(Integer) - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Setter for core pool size.
- setDefaultExecutor(String) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Setter for the default executor.
- setDefaultExecutor(String) - Method in class org.hawaiiframework.async.model.SystemProperties
-
Setter for the default executor.
- setDefaultTimeout(Integer) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Setter for the default timeout.
- setDefaultTimeout(Integer) - Method in class org.hawaiiframework.async.model.SystemProperties
-
Setter for the default timeout.
- setEnvironment(Environment) - Method in class org.hawaiiframework.async.AsyncExecutorConfiguration
- setExecutor(String) - Method in class org.hawaiiframework.async.model.TaskProperties
-
Setter for executor.
- setExecutors(List<ExecutorProperties>) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Setter for the executors.
- setKeepAliveTime(Integer) - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Setter for keep-alive time.
- setMaxPendingRequests(Integer) - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Setter for name.
- setMaxPoolSize(Integer) - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Setter for max pool size.
- setMethod(String) - Method in class org.hawaiiframework.async.model.TaskProperties
-
Setter for method name.
- setName(String) - Method in class org.hawaiiframework.async.model.ExecutorProperties
-
Setter for name.
- setName(String) - Method in class org.hawaiiframework.async.model.SystemProperties
-
Setter for the name.
- setSharedTaskContext(SharedTaskContext) - Method in class org.hawaiiframework.async.task.listener.KibanaLogFieldsTaskListener
- setSharedTaskContext(SharedTaskContext) - Method in class org.hawaiiframework.async.task.listener.LoggingTaskListener
- setSharedTaskContext(SharedTaskContext) - Method in interface org.hawaiiframework.async.task.listener.TaskListener
-
Set the shared task context in this task context.
- setSystems(List<SystemProperties>) - Method in class org.hawaiiframework.async.model.ExecutorConfigurationProperties
-
Setter for the systems.
- setTaskAbortStrategy(TaskAbortStrategy) - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Register the task abort strategy.
- setTaskAbortStrategy(TaskAbortStrategy) - Static method in class org.hawaiiframework.async.timeout.SharedTaskContextHolder
-
Set the current thread's
taskAbortStrategy. - setTaskRemoveStrategy(TaskRemoveStrategy) - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Register the task removal strategy.
- setTasks(List<TaskProperties>) - Method in class org.hawaiiframework.async.model.SystemProperties
-
Setter for the tasks.
- setTimeout(Integer) - Method in class org.hawaiiframework.async.model.TaskProperties
-
Setter for timeout.
- setTimeoutGuardTaskRemoveStrategy(TaskRemoveStrategy) - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Register the timeout guard task removal strategy.
- sharedTaskContext - Variable in class org.hawaiiframework.async.HawaiiAsyncRunnable
-
The abort strategy to set on the executing thread's ThreadLocal
SharedTaskContextHolder. - SharedTaskContext - Class in org.hawaiiframework.async.timeout
-
The strategy is used by the
TimeoutGuardTaskto stop a running guarded task. - SharedTaskContext(String, ExecutorConfigurationProperties, ExecutorStatistics, List<TaskListener>) - Constructor for class org.hawaiiframework.async.timeout.SharedTaskContext
-
Construct an instance.
- SharedTaskContextHolder - Class in org.hawaiiframework.async.timeout
-
Is used by the guarded task to register it's task abort command (if applicable).
- startExecution() - Method in class org.hawaiiframework.async.statistics.TaskStatistics
-
Set the timestamp the task is actually run.
- startExecution() - Method in class org.hawaiiframework.async.task.listener.KibanaLogFieldsTaskListener
- startExecution() - Method in class org.hawaiiframework.async.task.listener.LoggingTaskListener
- startExecution() - Method in interface org.hawaiiframework.async.task.listener.TaskListener
-
Called just before the task is started.
- startExecution() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Signal the start of the task's execution.
- stopExecution() - Method in class org.hawaiiframework.async.statistics.TaskStatistics
-
Set the timestamp the task is finished running.
- submit(Runnable) - Method in class org.hawaiiframework.async.DelegatingExecutor
- submit(Callable<T>) - Method in class org.hawaiiframework.async.DelegatingExecutor
- SystemProperties - Class in org.hawaiiframework.async.model
-
Configuration properties for a system.
- SystemProperties() - Constructor for class org.hawaiiframework.async.model.SystemProperties
T
- TaskAbortStrategy - Interface in org.hawaiiframework.async.timeout
-
A strategy to abort a running task.
- TaskIdSupplierHttpRequestInterceptor - Class in org.hawaiiframework.async.http
-
HTTP request interceptor to set a task id as a header on an HTTP request.
- TaskIdSupplierHttpRequestInterceptor() - Constructor for class org.hawaiiframework.async.http.TaskIdSupplierHttpRequestInterceptor
-
Default constructor with 'X-Hawaii-Task-Id' as
headername. - TaskIdSupplierHttpRequestInterceptor(String) - Constructor for class org.hawaiiframework.async.http.TaskIdSupplierHttpRequestInterceptor
-
Constructor that sets the header name.
- TaskListener - Interface in org.hawaiiframework.async.task.listener
-
An interface that allows listeners to be informed about the task's lifecycle.
- TaskListenerFactory - Interface in org.hawaiiframework.async.task.listener
-
Factory for a task listener.
- TaskListenerFactoryConfiguration - Class in org.hawaiiframework.async.task.listener
-
Configuration for listeners.
- TaskListenerFactoryConfiguration() - Constructor for class org.hawaiiframework.async.task.listener.TaskListenerFactoryConfiguration
- TaskProperties - Class in org.hawaiiframework.async.model
-
Properties representing configuration for an individual task.
- TaskProperties() - Constructor for class org.hawaiiframework.async.model.TaskProperties
- TaskRemoveStrategy - Class in org.hawaiiframework.async.timeout
-
Removes the scheduled task from the executor's queue.
- TaskRemoveStrategy(ThreadPoolExecutor, Runnable, String, String) - Constructor for class org.hawaiiframework.async.timeout.TaskRemoveStrategy
-
Create a new instance.
- TaskStatistics - Class in org.hawaiiframework.async.statistics
-
Statistics about a task.
- TaskStatistics() - Constructor for class org.hawaiiframework.async.statistics.TaskStatistics
-
The constructor, sets the queue start time.
- TaskTimeoutException - Exception in org.hawaiiframework.async.exception
-
Exception thrown when a task has been timed-out.
- TaskTimeoutException() - Constructor for exception org.hawaiiframework.async.exception.TaskTimeoutException
-
Constructs a new
TaskTimeoutException. - TaskTimeoutException(String) - Constructor for exception org.hawaiiframework.async.exception.TaskTimeoutException
-
Constructs a new
TaskTimeoutExceptionwith the suppliedmessage. - TaskTimeoutException(String, Throwable) - Constructor for exception org.hawaiiframework.async.exception.TaskTimeoutException
-
Constructs a new
TaskTimeoutExceptionwith the suppliedmessageandcause. - TaskTimeoutException(Throwable) - Constructor for exception org.hawaiiframework.async.exception.TaskTimeoutException
-
Constructs a new
TaskTimeoutExceptionwith the suppliedcause. - timeout() - Method in interface org.hawaiiframework.async.task.listener.TaskListener
-
Called just after a task has timed-out.
- timeout() - Method in class org.hawaiiframework.async.timeout.SharedTaskContext
-
Remove the guarded task from the queue, or else abort the running guarded task.
- TimeoutGuardTask - Class in org.hawaiiframework.async.timeout
-
Task that stops another scheduled task if the scheduled task's timeout has been reached.
- TimeoutGuardTask(SharedTaskContext) - Constructor for class org.hawaiiframework.async.timeout.TimeoutGuardTask
-
Create a new
TimeoutGuardTaskinstance with the giventaskExecutor. - toString() - Method in class org.hawaiiframework.async.model.ExecutorProperties
W
- waitForCompletion(Long, TimeUnit, CompletableFuture<?>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Delegates to
CompletableFuture.get(long, TimeUnit)}. - waitForCompletion(Long, TimeUnit, CompletableFuture<?>...) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Delegates to
CompletableFuture.get(long, TimeUnit)}. - waitForCompletion(Long, TimeUnit, List<CompletableFuture<T>>) - Static method in class org.hawaiiframework.async.AsyncUtil
-
Delegates to
CompletableFuture.get(long, TimeUnit)}.
Y
- YamlJavaBeanPropertyConstructor - Class in org.hawaiiframework.async
-
Extended version of snakeyaml's Constructor class to facilitate mapping custom YAML keys to JavaBean property names.
- YamlJavaBeanPropertyConstructor(Class<?>) - Constructor for class org.hawaiiframework.async.YamlJavaBeanPropertyConstructor
-
The constructor.
- YamlJavaBeanPropertyConstructor(Class<?>, Map<Class<?>, Map<String, String>>) - Constructor for class org.hawaiiframework.async.YamlJavaBeanPropertyConstructor
-
The constructor.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
SharedTaskContextHolderbefore delegating execution.