2 Replies Latest reply on Jul 31, 2012 12:51 PM by markaddleman

    getMetadata timeout per model?

    markaddleman

      Is it currently possible to set a timeout on the getMetadata method per model?  If not, I was thinking of a delegating translator that intercepts the getMetadata call, delegates it on a separate thread using an ExecutorService and then using Future.get(timeout) and Future.cancel(true) to enforce a timeout.  I'm a little concerned about threading issues.  Is this approach safe?