Interface TriggerCallable<R>
- Type Parameters:
R- the type of the result of the callable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
TriggerCallable is a functional interface that represents a callable that can be triggered
multiple times and returns a result of type
R. It acts as a placeholder of a chunk of
repetitive calls to, for example, a reusable method that fetches data from a remote API.
It resembles the Callable<V> from java.util.concurrent but it does not require
explicit exception handling while using it.
- See Also:
-
Method Summary
-
Method Details
-
get
R get()Triggers the callable and returns the resultR.- Returns:
- the result of the callable
-