public abstract class DefaultContinuation<F> extends Object implements Continuation<F>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
DefaultContinuation(Continuation<?> cont) |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Throwable cause)
This method gets called when the operation fails.
|
abstract void |
onSuccess(F result)
This method is called when the operation succeeds.
|
public DefaultContinuation(Continuation<?> cont)
public abstract void onSuccess(F result) throws Exception
ContinuationonSuccess in interface Continuation<F>result - The result of the completed operationExceptionpublic void onError(Throwable cause)
ContinuationonError in interface Continuation<F>cause - The cause of the failureCopyright © 2022 Kurento. All rights reserved.