Interface OpObserver<V>
- All Known Subinterfaces:
ImageOpObserver
- All Known Implementing Classes:
Repainter
public interface OpObserver<V>
An
OpObserver
is notified when its Op
completes..
Objects implementing OpObserver
are intended to
be passed as an argument to {link Op.get(Key,OpObserver)} or
{link Op.getFuture(Key,OpObserver)} which which call back to
{link #imageOpChange} on completion.
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelled
(Op<V> op, CancellationException e) Callback which is run when the observedOp
is cancelled.void
failed
(Op<V> op, ExecutionException e) Callback which is run when the observedOp
fails.void
interrupted
(Op<V> op, InterruptedException e) Callback which is run when the observedOp
is interrupted.void
Callback which is run when the observedOp
completes successfully.
-
Method Details
-
succeeded
-
cancelled
Callback which is run when the observedOp
is cancelled.- Parameters:
op
- the cancelledOp
e
- theCancellationException
thrown when theOp
was cancelled
-
interrupted
Callback which is run when the observedOp
is interrupted.- Parameters:
op
- the interruptedOp
e
- theInterruptedException
thrown when theOp
was interrupted
-
failed
Callback which is run when the observedOp
fails.- Parameters:
op
- the failedOp
e
- theExecutionException
thrown when theOp
failed
-