Package dev.getelements.elements.rt
Interface SingleUseHandlerService
- All Known Implementing Classes:
SimpleSingleUseHandlerService
public interface SingleUseHandlerService
Used to implement handler types. Handlers are
Resource
instances that are meant to handle one-time requests
that are invoked by other processes. This may employ caching to improve performance and avoi disk IO.-
Method Summary
Modifier and TypeMethodDescriptionperform
(Consumer<Object> success, Consumer<Throwable> failure, long timeoutDelay, TimeUnit timeoutUnit, String module, Attributes attributes, String method, Object... args) Performs an operation against thisSingleUseHandlerService
, reporting either success or failure to the code.void
start()
Starts thisSingleUseHandlerService
void
stop()
Stops thisSingleUseHandlerService
-
Method Details
-
start
void start()Starts thisSingleUseHandlerService
-
stop
void stop()Stops thisSingleUseHandlerService
-
perform
TaskId perform(Consumer<Object> success, Consumer<Throwable> failure, long timeoutDelay, TimeUnit timeoutUnit, String module, Attributes attributes, String method, Object... args) Performs an operation against thisSingleUseHandlerService
, reporting either success or failure to the code.
-