Interface TaskProcessor
- All Known Implementing Classes:
TaskManager
public interface TaskProcessor
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<TaskProcessor.Activation> getTopic()default booleaninitialize(long timeout, TimeUnit timeUnit) booleanisActive()booleanresume()default booleanbooleanboolean
-
Method Details
-
start
- Throws:
InterruptedExceptionTimeoutException
-
stop
- Throws:
InterruptedExceptionTimeoutException
-
resume
boolean resume() -
isActive
boolean isActive() -
getTopic
String getTopic() -
findActivation
-
initialize
default boolean initialize(long timeout, TimeUnit timeUnit) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
shutdown
default boolean shutdown(long timeout, TimeUnit timeUnit) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-