- Type Parameters:
S- the type of the input to the functionT- the type of the result of the function
public interface AsyncCallFunction<S,T>
Represents a function that can be called asynchronously.
- Author:
- Jan Novotný (novotny@fg.cz), FG Forrest a.s. (c) 2024
-
Method Summary
-
Method Details
-
apply
Applies the function to the given service stub asynchronously.- Parameters:
serviceStub- the service stub to apply the function on- Returns:
- the result of applying the function to the service stub
- Throws:
InterruptedException- if the execution is interrupted while waiting for the resultExecutionException- if the execution encounters an exceptionTimeoutException- if the execution times out
-