Package io.netty.internal.tcnative
Interface ResultCallback<T>
-
- Type Parameters:
T- The result type.
public interface ResultCallback<T>Callback that is called once an operation completed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(long ssl, java.lang.Throwable cause)Called when the operation completes with an error.voidonSuccess(long ssl, T result)Called when the operation completes with the given result.
-
-
-
Method Detail
-
onSuccess
void onSuccess(long ssl, T result)Called when the operation completes with the given result.- Parameters:
ssl- the SSL instance (SSL *)result- the result.
-
onError
void onError(long ssl, java.lang.Throwable cause)Called when the operation completes with an error.- Parameters:
ssl- the SSL instance (SSL *)cause- the error.
-
-