return (ThreadManagerResponse) value;
else
return new ThreadManagerResponseImpl(getId(),
NOVALUE,
null,
null);
}
}
catch (InterruptedException e)
{
return new ThreadManagerResponseImpl(getId(),
INTERRUPTED,
e.getMessage(),
e,
getStartingTime(),
getEndingTime());
}
catch(ExecutionException e)
{
int errorCode = INVOCATION;
if (e.getCause() instanceof TimeoutException)
errorCode = TIMEOUT;
return new ThreadManagerResponseImpl(getId(),
errorCode,
e.getCause().getMessage(),