camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <hi...@hiramchirino.com>
Subject Re: VmComponent
Date Fri, 05 Oct 2007 14:13:09 GMT
commited in rev 582282

On 10/5/07, Hiram Chirino <hiram@hiramchirino.com> wrote:
> Hi William,
>
> Actually that only makes sense if we keep a global reference counter
> too.  Cause we only want to clear out the queues once the last
> instance of the Vm component is shutdown.
>
> Will work on it in a bit.
>
> On 10/4/07, William Tam <email.wtam@gmail.com> wrote:
> > We might want to add this to VmComponent as a way to clear out the
> > static Map of BlockingQueues.   Notice that once the vm component has
> > been stopped, entriies in the queues are deleted.  Starting it again
> > will start with a clean slate.
> >
> >     @Override
> >     protected void doStop() throws Exception {
> >         super.doStop();
> >         synchronized (queues) {
> >             for (BlockingQueue q : queues.values()) {
> >                 q.clear();
> >             }
> >             queues.clear();
> >         }
> >     }
> >
>
>
> --
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Mime
View raw message