Code example for AtomicBoolean

Methods: set

0
    } 
  } 
 
  public void setShutDownRequested(boolean shutDownRequested)
  { 
    _shutdownRequested.set(shutDownRequested);
    try 
    { 
      _xmlStreamReader.close();
    } 
    catch (XMLStreamException e)
    { 
      LOG.error("Error while attempting to close the parser: "); 
    } 
    catch(NoSuchElementException e)
    { 
      LOG.info("Concurrent stream access while shutdown, it's safe to ignore this."); 
    } 
    catch(RuntimeException e)
    { 
      LOG.error("Runtime exception while attempting shutdown, ignoring the exception", e);