Periodic TimerTask in netty
magiceye
magiceye at 163.com
Mon Sep 5 01:59:11 EDT 2011
Netty assume the application is all event-driven, that means all business
operation is triggered by client package. But for some application, this
assumption is not enough. What if the business object aslo required to be
update in a timer task rather than client event? Netty's ExecutionHandler
care event ordering & visibility between threads for you, this is
convenient. But this will be break when application require other kind
business operation trigger. In this application, even user use
ExecutionHandler, they still needs to care visibility because they have to
use other threads which don't belong to netty to execute business logic. And
this is boring, business object needs to be designed carefully, the
advantage of ExecutionHandler has gone. That is what I am talking about
"useless".
Some project(darkstar) simulate a pseudo-event to do this timer task, I hope
netty considerate this feature.
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Periodic-TimerTask-in-netty-tp6756465p6759880.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list