Class DecodeMonitor

  • Direct Known Subclasses:
    LoggingMonitor

    public class DecodeMonitor
    extends Object
    This class is used to drive how decoder/parser should deal with malformed and unexpected data. 2 basic implementations are provided:
    • STRICT return "true" on any occurrence
    • SILENT ignores any problem
    • Field Detail

      • STRICT

        public static final DecodeMonitor STRICT
        The STRICT monitor throws an exception on every event.
      • SILENT

        public static final DecodeMonitor SILENT
        The SILENT monitor ignore requests.
    • Constructor Detail

      • DecodeMonitor

        public DecodeMonitor()
    • Method Detail

      • warn

        public boolean warn​(String error,
                            String dropDesc)
      • isListening

        public boolean isListening()