Code example for AtomicBoolean

Methods: getset

0
    } 
 
 
    public void prob() throws InterruptedException { 
        // ±ÜÃâ±»Îóµ÷Óöà´Î 
        if (this.isProbeStarted.get() == false) {
            this.doProb();
            this.isProbeStarted.set(true);
        } 
        else { 
            this.logger.info("ÒѾ­ÔËÐÐÖÐ,²»±ØÆô¶¯");
        } 
    } 
 
 
    public void stopProb() { 
        if (this.isProbeStarted.compareAndSet(true, false)) {
            this.doStopProb();
            this.logger.info("ֹͣ̽²â.");
        } 
Stop searching for code, let great code find you!  Add Codota to your java IDE