Hi Andrew If am not wrong you are trying to solve a typical client server problem, wherein the client calls to server have to be controlled and ONE AND ONLY ONE call is to execute (say reading/writing from/to the server stream ) at any given fraction of time towards its(call) completion or timeout.
The solution is to understand the usage of 'synchronized' keyword. Thanks Madhav Vodnala ----- Original Message ----- From: "Andrew Rendle" <[EMAIL PROTECTED]> To: "JDJList" <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 4:30 PM Subject: [jdjlist] Slowing down processing | Good Morning All | | I have a processing problem that means commands can be issued to fast for my | processing server. | | I have an API, a list of methods, which perform various actions on a server | object. | | I need to be able to make sure there is a minimum gap between requests also | each function needs to either complete or timeout. | | What I would prefer not to do is convert each function call into a command | list with parameters and then have a long else if structure to decode and | action the requested method. What I really want is to control the execution | of each API call | | I know it sound a little confused but does anyone understand what I am | trying to do and is it possible? | | Cheers | | Andrew | | | | ____________________________________________________ | To change your JDJList options, please visit: | http://www.sys-con.com/java/list.cfm | | Be respectful! Clean up your posts before replying | ____________________________________________________ ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________
