public void expire () { synchronized (lock) { if (!expired) { bb.openTransaction(); prepareHealthReports(); bb.closeTransaction(); expired = true; }
public synchronized void expire () { if (!expired) { bb.openTransaction(); bb.publishAdd(new PrepareHealthReports()); bb.closeTransaction(); expired = true;
    public void expire () {      synchronized (lock) {        if (!expired) {          bb.openTransaction();          prepareHealthReports();          bb.closeTransaction();          expired = true;        }      }    }