title: Set running time limit on a method in java
body: <p>I have a method that returns a String.</p>
  <p>Is it possible that after a certain time, if threshold is excedeed for that method, to return some specific string?</p>