This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Execute tasks after specified time

 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a buffer class which receives message object. I have to pass this message object to other class. The condition is that if i have 1 message or n milli sec has elapsed, i have t send this messages object to other class.
 
Vinney Shanmugam
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try TimerTask class of java.util
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic