This class indicates a timeout condition during the invocation or execution of a service.
If a component has invoked a service asynchronously, it can request a response when the component is ready to process the data. On that request, there is a wait period for the response. If response exceeds the wait period, a ServiceRuntimeException is thrown. The component can then determine the cause of the exception using the getCause() or getMessage() methods.
StockQuoteAsync sQ = (StockQuoteAsync)ServiceManager.locateService(“stockQuote"); Ticket ticket = stockQuote.getQuoteRequest("IBM"); // do something else try { float quote = stockQuote.getQuoteResponse(ticket, Service.NO_WAIT); or float quote = stockQuote.getQuoteResponse(ticket, 10000); } catch (ServiceTimeoutRuntimeException) { … }
Parent topic: Service exceptions
Related reference
ServiceBusinessException class
Related information
Class ServiceRuntimeException
APIs
Last updated: Tue Sep 20 03:22:37 2005
Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)