com.lmax.disruptor
Class AlertException

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

public class AlertException
extends java.lang.Exception

Used to alert consumers waiting at a ConsumerBarrier of status changes.

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

See Also:
Serialized Form

Field Summary
static AlertException ALERT_EXCEPTION
          Pre-allocated exception to avoid garbage generation
 
Method Summary
 java.lang.Throwable fillInStackTrace()
          Overridden so the stack trace is not filled in for this exception for performance reasons.
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALERT_EXCEPTION

public static final AlertException ALERT_EXCEPTION
Pre-allocated exception to avoid garbage generation

Method Detail

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
Overridden so the stack trace is not filled in for this exception for performance reasons.

Overrides:
fillInStackTrace in class java.lang.Throwable
Returns:
this instance.


Copyright © 2011 LMAX Ltd. All Rights Reserved.