[zanata/zanata-server] 1681e9: Refactor TimedAsyncHandle's getEstimatedTimeRemain...

GitHub noreply at github.com
Tue Aug 27 03:48:12 UTC 2013


  Branch: refs/heads/async-refactor
  Home:   https://github.com/zanata/zanata-server
  Commit: 1681e9a8ce10f7eb96bc1ba921e739aea1a4f6fa
      https://github.com/zanata/zanata-server/commit/1681e9a8ce10f7eb96bc1ba921e739aea1a4f6fa
  Author: Carlos A. Munoz <camunoz at redhat.com>
  Date:   2013-08-26 (Mon, 26 Aug 2013)

  Changed paths:
    M zanata-war/src/main/java/org/zanata/action/ViewAllStatusAction.java
    M zanata-war/src/main/java/org/zanata/async/TimedAsyncHandle.java

  Log Message:
  -----------
  Refactor TimedAsyncHandle's getEstimatedTimeRemaining to return Optional now.

Initally though about throwing an exception, but really the estimated time might be asked for even after the process has started, so it's not really suitable to throw an exception in that case. Returning an optional seems like the next best possibility.





More information about the zanata-commits mailing list