Timeout helper framework
First Claim
1. A method comprising:
- invoking a timeout helper main thread for an outbound call associated with a container;
creating a timeout helper worker thread by the timeout helper main thread;
starting a local timer to detect a first timeout condition based on a first timeout interval;
initiating, by the timeout helper worker thread, a client Object Request Broker (ORB) to detect a second timeout condition based on a second timeout interval;
throwing a timeout exception from the timeout helper main thread when the outbound call has not completed within the first timeout interval;
throwing a second exception by the client ORB to the timeout helper worker thread when the outbound call has not completed within the second timeout interval; and
reclaiming one or more resources associated with the outbound call in response to the second exception.
4 Assignments
0 Petitions
Accused Products
Abstract
A timeout helper main thread is created for an outbound call associated with a container. The main thread creates a timeout helper worker thread. A local timer is started to detect a first timeout condition based on a first timeout interval. The worker thread initiates a client Object Request Broker (ORB) to detect a second timeout condition based on a second timeout interval. If the outbound call completes within the first timeout interval, a result object is returned from the main thread. Otherwise, the main thread throws a timeout exception. If the outbound call has not completed within the second timeout interval, the client ORB throws an exception to the worker thread and one or more resources associated with the outbound call are reclaimed. As an alternative to the client ORB, an HTTP client can detect the second timeout condition.
-
Citations
20 Claims
-
1. A method comprising:
-
invoking a timeout helper main thread for an outbound call associated with a container;
creating a timeout helper worker thread by the timeout helper main thread;
starting a local timer to detect a first timeout condition based on a first timeout interval;
initiating, by the timeout helper worker thread, a client Object Request Broker (ORB) to detect a second timeout condition based on a second timeout interval;
throwing a timeout exception from the timeout helper main thread when the outbound call has not completed within the first timeout interval;
throwing a second exception by the client ORB to the timeout helper worker thread when the outbound call has not completed within the second timeout interval; and
reclaiming one or more resources associated with the outbound call in response to the second exception. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method comprising:
-
invoking a timeout helper main thread for an outbound call associated with a container;
creating a timeout helper worker thread by the timeout helper main thread;
starting a local timer to detect a first timeout condition based on a first timeout interval;
throwing a timeout exception from the timeout helper main thread when the outbound call has not completed within the first timeout interval;
using a Hypertext Transfer Protocol (HTTP) client to detect a second timeout condition based on a second timeout interval;
receiving, by the timeout helper worker thread, a timeout from the HTTP client when the outbound call has not completed within the second timeout interval; and
reclaiming one or more resources associated with the outbound call in response to the timeout from the HTTP client. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A computer-readable medium having computer-readable program code to cause a computer system to perform acts of:
-
invoking a timeout helper main thread for an outbound call associated with a container;
creating a timeout helper worker thread by the timeout helper main thread;
starting a local timer to detect a first timeout condition based on a first timeout interval;
initiating, by the timeout helper worker thread, a client Object Request Broker (ORB) to detect a second timeout condition based on a second timeout interval;
throwing a timeout exception from the timeout helper main thread when the outbound call has not completed within the first timeout interval;
throwing a second exception by the client ORB to the timeout helper worker thread when the outbound call has not completed within the second timeout interval; and
reclaiming one or more resources associated with the outbound call in response to the second exception. - View Dependent Claims (15, 16, 17)
-
-
18. A computer-readable medium having computer-readable program code to cause a computer system to perform acts of:
-
invoking a timeout helper main thread for an outbound call associated with a container;
creating a timeout helper worker thread by the timeout helper main thread;
starting a local timer to detect a first timeout condition based on a first timeout interval;
throwing a timeout exception from the timeout helper main thread when the outbound call has not completed within the first timeout interval;
using a Hypertext Transfer Protocol (HTTP) client to detect a second timeout condition based on a second timeout interval;
receiving, by the timeout helper worker thread, a timeout from the HTTP client when the outbound call has not completed within the second timeout interval; and
reclaiming one or more resources associated with the outbound call in response to the timeout from the HTTP client. - View Dependent Claims (19, 20)
-
Specification