Package org.minidns.util
Interface CallbackRecipient<V,E>
-
- Type Parameters:
V
- the type of the success value.E
- the type of the exception.
- All Known Implementing Classes:
MiniDnsFuture
,MiniDnsFuture.InternalMiniDnsFuture
public interface CallbackRecipient<V,E>
A recipient of success and exception callbacks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CallbackRecipient<V,E>
onError(ExceptionCallback<E> exceptionCallback)
CallbackRecipient<V,E>
onSuccess(SuccessCallback<V> successCallback)
-
-
-
Method Detail
-
onSuccess
CallbackRecipient<V,E> onSuccess(SuccessCallback<V> successCallback)
-
onError
CallbackRecipient<V,E> onError(ExceptionCallback<E> exceptionCallback)
-
-