Class AtomicThrowable


  • public class AtomicThrowable
    extends Object
    • Constructor Detail

      • AtomicThrowable

        public AtomicThrowable()
        This method creates new instance
      • AtomicThrowable

        public AtomicThrowable​(Exception e)
        This method creates new instance with given initial state
        Parameters:
        e -
    • Method Detail

      • get

        public Throwable get()
        This method returns current state
        Returns:
      • set

        public void set​(Throwable t)
        This method updates state with given Throwable
        Parameters:
        t -
      • setIfFirst

        public void setIfFirst​(Throwable t)
        This method updates state only if it wasn't set before
        Parameters:
        t -
      • isTriggered

        public boolean isTriggered()
        This method returns TRUE if internal state holds error, FALSE otherwise
        Returns: