public interface ServiceExecutor
close(Runnable) to block a service from stopping.| Modifier and Type | Method and Description |
|---|---|
void |
close(Runnable closeTask)
Closes the service, executing the specified task, first waiting for any concurrent executions to complete.
|
void |
execute(Runnable executeTask)
Executes the specified task, but only if the service was not already closed.
|
void execute(Runnable executeTask)
task - a task to executevoid close(Runnable closeTask)
close(Runnable) invocations.task - a task which closes the serviceCopyright © 2023 JBoss by Red Hat. All rights reserved.