public long getMaxTime() {
    return maxTime;
  }
Create a generic timer for a task/process.
@param listener listener to notify if the process times out
@param maxTime  max allowed running time for the process. Timer starts on calls to
                {@link #start()}
hbase-server/src/main/java/org/apache/hadoop/hbase/errorhandling/TimeoutExceptionInjector.java