synchronized boolean update() {
        int elected = this.elected;
        int oldelected = this.oldelected;
        int lbfactor = this.lbfactor;
        if (lbfactor > 0) {
            this.lbstatus = ((elected - oldelected) * 1000) / lbfactor;
        }
        this.oldelected = elected;
        return elected != oldelected; // ping if they are equal
    }
synchronized boolean update ( ) { int elected = this . elected ; int oldelected = this . oldelected ; int lbfactor = this . lbfactor ; if ( lbfactor > 0 ) { this . lbstatus = ( ( elected - oldelected ) * 1000 ) / lbfactor ; } this . oldelected = elected ; return elected != oldelected ; }
Update the load balancing status.

@return