@litius
Sure,
We have a timer which is 3 minutes long on each auction, and counts down.
Now I want to reset the timer when users bid on auction.
@litius
Sure,
We have a timer which is 3 minutes long on each auction, and counts down.
Now I want to reset the timer when users bid on auction.
@navid,
Whenever you use Spring's TaskScheduler to schedule a task it follows a "java.util.concurrent.ScheduledExecutorService " convention and returns you a "java.util.concurrent.ScheduledFuture", which you can cancel as any java Future object.
So if you keep a reference to this ScheduledFuture within the Auction / Selling Item / etc.. you can cancel it at any time. And then reschedule the task in the same way you have scheduled it in the first place.
/Anatoly
Humans are stateful and mutable beings that have no problems processing many things concurrently and share state with others + they are usually "coupled"
Thanks Anatoly, I just followed your solutions and it worked for me.
Regards
Is "scheduler" in this example an instance of SchedulerFactoryBean ?
I Also need to pass a parameter(auctionID) to the job, how can I make it possible in this approach?
Hi,
I tried job schedule in spring with Quarts tools. but i want to know whether to create job schedule in spring annotation without using quartz and also should achieve in new Programmatic way apply time, schedule class and others, not for bean config...........................
Is there anyway I can implement Dynamic Scheduling (More like a CronTrigger which will be invoked based on the information stored in the database) ??