@Override
    public void close() {}
Check the time remaining until the timeout expires.

@param currentTimeMs current time in milliseconds
@return the duration in milliseconds from the current time before the timeout expires
raft/src/main/java/org/apache/kafka/raft/ResignedState.java