public boolean tryUse(){
  return used.compareAndSet(false,true);
}

public boolean tryUse ( ) { return used . compareAndSet ( false , true ) ; }
try to use this observer . will return true only once .
