T
- the type of the object passed to the callbackpublic interface Callback<T>
Modifier and Type | Method and Description |
---|---|
void |
invoke(T value)
Invokes the callback with value
|
void invoke(T value) throws Exception
value
- the value to supply to the callback.Exception
- The callee may throw any exception during the computation. Therefore the caller should
implement proper error handling without relying on specific exception types.Copyright © 2018. All rights reserved.