Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
javadoc added for new functional interfaces
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
package io.faob.utopian.handlers; | ||
|
||
/** | ||
* Functional interface used as lambda expression to handle error. | ||
* | ||
* @param <E> Exception Type | ||
* @author FaoB | ||
*/ | ||
|
||
public interface ErrorHandler<E> { | ||
void handleError(E e); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
package io.faob.utopian.handlers; | ||
|
||
/** | ||
* Functional interface used as lambda expression to handle successful response. | ||
* | ||
* @param <T> Response Type | ||
* @author FaoB | ||
*/ | ||
|
||
public interface ResponseHandler<T> { | ||
void handleResponse(T r); | ||
} |