Class StandardMessageErrorDigester

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, MessageErrorDigester

    @ComponentProfile(summary="The default message error digester that exposes some minimum metrics via JMX",
                      tag="error-handling,base")
    public class StandardMessageErrorDigester
    extends MessageErrorDigesterImp
    Record any error'd adaptris messages and make these available through JMX.

    In the adapter configuration file this class is aliased as standard-message-error-digester which is the preferred alternative to the fully qualified classname when building your configuration.

    • Field Detail

      • log

        protected transient org.slf4j.Logger log
    • Constructor Detail

      • StandardMessageErrorDigester

        public StandardMessageErrorDigester()
      • StandardMessageErrorDigester

        public StandardMessageErrorDigester​(java.lang.String uniqueId)
      • StandardMessageErrorDigester

        public StandardMessageErrorDigester​(java.lang.String uniqueId,
                                            int max)
    • Method Detail

      • setDigestMaxSize

        public void setDigestMaxSize​(int max)
        The maximum number of messages you want to hold in this digest.
      • getDigestMaxSize

        public int getDigestMaxSize()
      • getTotalErrorCount

        public int getTotalErrorCount()
        Description copied from interface: MessageErrorDigester
        Get the total number of errors that were recorded by this Digester implementatino.
        Returns:
        the total number of errors.
      • remove

        public boolean remove​(java.lang.String msgId)
      • remove

        public boolean remove​(java.lang.String msgId,
                              boolean attemptFileDelete)