public synchronized void interruptLeadership ( ) { Future < ? > task = ourTask . get ( ) ; if ( task != null ) { task . cancel ( true ) ; } }
Attempt to cancel and interrupt the current leadership if this instance has leadership