public void resultAvailable(Void result) { if(!unblocked[0]) { unblock(monitor, new TimeoutException(Future.DEBUG ? "" : "Use PlatformConfiguration.setDebugFutures(true) for timeout cause.", ex)); } }
getLogger().info(getComponentName() + e.getMessage());
getLogger().info(getComponentName()+" "+e.getMessage());
public void timeEventOccurred(long currenttime) { ret.setExceptionIfUndone(new TimeoutException()); } });
getLogger().info(getComponentName()+" "+e.getMessage());
public void timeEventOccurred(long currenttime) { // if(rescom.equals(getResumeCommand())) // { // setException(new TimeoutException()); rescom.execute(new ResumeCommandArgs(null, null, new TimeoutException())); // RPlan.executePlan(RPlan.this, ia, rescom); // } } };
public IFuture<Void> execute(IInternalAccess ia) { // if(rescom.equals(getResumeCommand())) { setException(new TimeoutException()); RPlan.executePlan(RPlan.this, ia, rescom); } return IFuture.DONE; } });
public void run() { // System.out.println("TIMEOUT: "+System.currentTimeMillis()+" "+filename); triggered[0] = true; boolean b = finished.setExceptionIfUndone(new TimeoutException(ComponentTest.this+" did not finish in "+timeout+" ms.")); if(b && cid[0]!=null) { cms.destroyComponent(cid[0]); } } }, timeout);
public IFuture<Void> execute(IInternalAccess ia) { if(!future.isDone()) { WaitingCallInfo wci = rms.removeWaitingCall(callid); if(future instanceof ITerminableFuture) { ((ITerminableFuture<?>)future).terminate(new TimeoutException("No reply received and timeout occurred: " +receiver+", "+callid+", "+wci+", "+timeout)); } else { future.setExceptionIfUndone(new TimeoutException("No reply received and timeout occurred: " +receiver+", "+callid+", "+wci+", "+timeout)); } } return IFuture.DONE; } });
public IFuture<Void> execute(IInternalAccess ia) { if(!future.isDone()) { WaitingCallInfo wci = rms.removeWaitingCall(callid); if(future instanceof ITerminableFuture) { ((ITerminableFuture<?>)future).terminate(new TimeoutException("No reply received and timeout occurred: " +receiver+", "+callid+", "+wci)); } else { future.setExceptionIfUndone(new TimeoutException("No reply received and timeout occurred: " +receiver+", "+callid+", "+wci)); } } return IFuture.DONE; } });
throw new IBlockingQueue.ClosedException("Queue closed."); if(size==0 && to==0) throw new TimeoutException("Timeout during dequeue().");
public IFuture<Void> execute(IInternalAccess ia) { if(!future.isDone()) { WaitingCallInfo wci = rms.removeWaitingCall(callid); if(future instanceof ITerminableFuture) { ((ITerminableFuture<?>)future).terminate(new TimeoutException("No reply received and timeout occurred: " +receiver+", "+callid+", "+wci)); } else { future.setExceptionIfUndone(new TimeoutException("No reply received and timeout occurred: " +receiver+", "+callid+", "+wci)); } } return IFuture.DONE; } });
throw new IBlockingQueue.ClosedException("Queue closed."); if(elems.isEmpty()) throw new TimeoutException("Timeout during dequeue().");
throw new TimeoutException("Timeout while waiting for future.");