DoubleCheckedInt (SLF4J 1.7.25 Test API)
Date: 2017-03-16

org.slf4j

## Class DoubleCheckedInt

- java.lang.Object
- - org.slf4j.DoubleCheckedInt

-     public class DoubleCheckedInt
      extends Object

  This class demonstrates that threads accessing the STATE variable always see a consistent value. During ongoing initialization the observed value is either ONGOING_INITIALIZATION or one of {SUCCESS, FAILURE}. Post initialization the observed value is always one of {SUCCESS, FAILURE}. See also http://jira.qos.ch/browse/SLF4J-167
  Author:
    ceki

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DoubleCheckedInt()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `getState()`
    `static void` | `main(String[] args)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DoubleCheckedInt

          public DoubleCheckedInt()

  - ### Method Detail

    - #### getState

          public static int getState()

    - #### main

          public static void main(String[] args)
                           throws InterruptedException,
                                  BrokenBarrierException

      Throws:
        `InterruptedException`
        `BrokenBarrierException`

Copyright © 2005–2017 QOS.ch. All rights reserved.