Class AlertException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.lmax.disruptor.AlertException
All Implemented Interfaces:
Serializable

public final class AlertException extends Exception
Used to alert EventProcessors waiting at a SequenceBarrier of status changes.

It does not fill in a stack trace for performance reasons.

See Also:
  • Field Details

    • INSTANCE

      public static final AlertException INSTANCE
      Pre-allocated exception to avoid garbage generation
  • Constructor Details

    • AlertException

      private AlertException()
      Private constructor so only a single instance exists.
  • Method Details

    • fillInStackTrace

      public Throwable fillInStackTrace()
      Overridden so the stack trace is not filled in for this exception for performance reasons.
      Overrides:
      fillInStackTrace in class Throwable
      Returns:
      this instance.