Method, apparatus, and system for applying timed operations to non-timed functions

An encapsulation module encapsulates a function in a timed method adapter. A caller calls the timed method adapter in place of the function. The timed method adapter calls a set invoker. The set invoker saves an argument, calls an invoke thread, and returns to the timed method adapter. The invoke th...

Full description

Saved in:
Bibliographic Details
Main Authors WANG ZHONG PING, WARD MATTHEW JOHN
Format Patent
LanguageEnglish
Published 13.11.2012
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:An encapsulation module encapsulates a function in a timed method adapter. A caller calls the timed method adapter in place of the function. The timed method adapter calls a set invoker. The set invoker saves an argument, calls an invoke thread, and returns to the timed method adapter. The invoke thread invokes the function and passes the function an object and the argument. The timed method adapter further waits for an execution result from the function and monitors for an expiration of a timeout. If the function returns the execution result before expiration of the timeout, the timed method adapter returns the execution result to the caller. If the timeout expires before the function returns the execution result, the timed method adapter directs the invoke thread to cancel the function and returns a timeout exception to the caller.
Bibliography:Application Number: US20090368102