Code example for AtomicBoolean

0
 
    private int _block;
    private int _slabId;
    private long _lastAccess = System.currentTimeMillis();
    private long _accesses;
    private AtomicBoolean _removed = new AtomicBoolean(false);
     
    public void setBlock(int block) {
        _block = block;
    } 
 
    public void setSlabId(int slabId) {
        _slabId = slabId;
    } 
 
    public int getBlock() { 
        return _block;
    } 
 
    public int getSlabId() { 
        return _slabId;