Re: Event Flow?

"Diez B. Roggisch" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Kirk,

I just had some second thoughts on this. 2 years ago, I tried something 
similar - I wanted 2 classes of events where it was ensured that all events 
of type one were processed before the other ones. Actually the reasons for 
this weren't viable, but as a result the 

ApplicationGateway.getNewDispatchQueueInstance()

method was introduced. So if you _want_ priorized events - you can simply get 
them, by introducing an interface like PriorityEvent with a method 

int getPriority()

Your own dispatch-queue then could rearrange events according to that 
priority. Of course right now the event-task doesn't support this - but most 
probably you can go quite far with an default-priority for "normal" events 
and explicitely code your priority-events.

Diez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.