Package io.confluent.license.util
Interface Callback<V>
- All Known Implementing Classes:
ConvertingFutureCallback,FutureCallback,LicenseStore.ConsumeCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Generic interface for callbacks
-
Method Summary
Modifier and TypeMethodDescriptionvoidonCompletion(Throwable error, V result) Invoked upon completion of the operation.
-
Method Details
-
onCompletion
Invoked upon completion of the operation.- Parameters:
error- the error that caused the operation to fail, or null if no error occurredresult- the return value, or null if the operation failed
-