Probably more than you want, really: the "throttle" class was a very
simple example of this sort of thing. Use that instead. :)

On Tue, 21 Jan 2003, Andrew Rendle wrote:

> And what would one of those be?
>
> -----Original Message-----
> From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 14:16
> To: JDJList
> Subject: [jdjlist] Re: Slowing down processing
>
> Sounds like what you want is a middleware consumer somewhere.
>
> On Tue, 21 Jan 2003, Andrew Rendle wrote:
>
> > Hi Madhav
> >
> > Unfortunately 'synchronized' will only stop calls being made at the same
> > time. But it won't help if the processing is going too fast; I need to
> space
> > the calls out even if the "client " sends them together(very closely
> > together)
> >
> > Regards
> >
> > Andrew
> >
> > -----Original Message-----
> > From: Madhav Vodnala [mailto:[EMAIL PROTECTED]]
> > Sent: 21 January 2003 12:27
> > To: JDJList
> > Subject: [jdjlist] Re: Slowing down processing
> >
> >
> > 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
> > ____________________________________________________
> >
> >
> >
> > ____________________________________________________
> > To change your JDJList options, please visit:
> > http://www.sys-con.com/java/list.cfm
> >
> > Be respectful! Clean up your posts before replying
> > ____________________________________________________
> >
>
> ---------------------------------------------------------
> Joseph B. Ottinger                 [EMAIL PROTECTED]
> http://enigmastation.com                    IT Consultant
>
>
> ____________________________________________________
> 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
> ____________________________________________________
>

---------------------------------------------------------
Joseph B. Ottinger                 [EMAIL PROTECTED]
http://enigmastation.com                    IT Consultant


____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to