Code example for AtomicBoolean

Methods: set

0
} 
 
  @Override 
  public void setEnabled(boolean enabled)
  { 
    _enabled.set(enabled);
  } 
 
  @Override 
  public T getStatistics(T reuse)
  { 
    if (null == reuse) reuse = newDataEvent();
 
    Lock readLock = acquireReadLock();
 
    try 
    { 
      cloneData(reuse);
    } 
    finally 
    {