Batch updating timeout functionality.
Hi,
I have a problem where I have implmented batch updating in my application. However, we need to include a timeout feature that will execute a batch after a specified amount of time. For example, if we implement so that we add 25 statements to a batch before executing the batch, if there is a situation where we add 15 statements to the batch and no more statements arrive, then we will want the batch to execute.
Any help solving the problem would be appreciated.
Thanks in advance,
Chris.
[525 byte] By [
cbridlea] at [2007-11-27 11:57:02]

# 1
> Hi,
>
> I have a problem where I have implmented batch
> updating in my application. However, we need to
> include a timeout feature that will execute a batch
> after a specified amount of time.
Date classes? TimerTask? should be real easy even for a beginner.
> For example, if we
> implement so that we add 25 statements to a batch
> before executing the batch, if there is a situation
> where we add 15 statements to the batch and no more
> statements arrive, then we will want the batch to
> execute.
Your requirements aren't very clear. How do you know if there's no more statements on the way? Need more info...