public class EncoderMonitorAdapter extends Object implements EncoderMonitor
INSTANCE| Constructor and Description |
|---|
EncoderMonitorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
callbackOccured(StatefulEncoder encoder,
EncoderCallback cb,
Object decoded)
Monitors callbacks that deliver a fully decoded object.
|
void |
callbackSet(StatefulEncoder encoder,
EncoderCallback oldcb,
EncoderCallback newcb)
Monitors changes to the callback.
|
void |
error(StatefulEncoder encoder,
Exception exception)
Receive notification of a recoverable error.
|
void |
fatalError(StatefulEncoder encoder,
Exception exception)
Receive notification of a non-recoverable error.
|
void |
warning(StatefulEncoder encoder,
Exception exception)
Receive notification of a warning.
|
public void error(StatefulEncoder encoder, Exception exception)
error in interface EncoderMonitorencoder - the encoder that had the errorexception - the error information encapsulated in an exceptionpublic void fatalError(StatefulEncoder encoder, Exception exception)
fatalError in interface EncoderMonitorencoder - the encoder that had the failureexception - the warning information encapsulated in an exceptionpublic void warning(StatefulEncoder encoder, Exception exception)
warning in interface EncoderMonitorencoder - the encoder that had the errorexception - the warning information encapsulated in an exceptionpublic void callbackOccured(StatefulEncoder encoder, EncoderCallback cb, Object decoded)
callbackOccured in interface EncoderMonitorencoder - the stateful encoder driving the callbackdecoded - the object that was decodedcb - the callback to call when the encoder has done its jobpublic void callbackSet(StatefulEncoder encoder, EncoderCallback oldcb, EncoderCallback newcb)
callbackSet in interface EncoderMonitorencoder - the encoder whose callback was setoldcb - the unset old callback, or null if none was setnewcb - the newly set callback, or null if callback is clearedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.