Code example for AtomicBoolean

0
      "druid.database.ruleTable", 
      "druid.database.taskLockTable", 
      "druid.database.taskLogTable", 
      "druid.database.taskTable" 
  ); 
  private AtomicBoolean ran = new AtomicBoolean(false);
 
  @Override 
  public boolean canHandle(String property)
  { 
    return tableProperties.contains(property) && !ran.get();
  } 
 
  @Override 
  public Map<String, String> convert(Properties properties)
  { 
    if (!ran.getAndSet(true)) {
      String tablePrefix = properties.getProperty("druid.database.segmentTable");
 
      if (tablePrefix == null) {