Code example for AtomicLong

Methods: get, set

0
    } 
 
    if(_thread == null)
    { 
      // Thread is not already running. Go ahead and start a new one. 
      _sinceSCN.set(sinceSCN);
      _log.info("Starting EventProducerThread from SCN: " + _sinceSCN.get());
      _pauseRequested = false;
      _shutdownRequested = false;
 
      _sinceSCN.set(sinceSCN);
 
      // init the buffer with the start SCN 
      //only valid for first restart 
      if (_coldStart) {
        _eventBuffer.start(sinceSCN);
      } 
 
      _thread = new EventProducerThread(_name);
      _thread.setDaemon(true);
      _thread.start();