camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine DESSAIGNE <antoine.dessai...@gmail.com>
Subject Questions about seda's BlockingQueueFactory
Date Mon, 24 Oct 2016 08:57:35 GMT
Hello everyone,

We're currently creating a custom implementation of seda's
BlockingQueueFactory. We are a bit puzzled by the expected behavior of some
corner cases. I'll be more than happy to create a pull request with more
detailed javadoc afterwards.

So here are our questions. Thanks a lot if you have some answers.

A. When your implementation is always unbounded, should you throw an
exception when you call create(int capacity) ? Should you ignore this
parameter ? Some users might rely on the fact that it's bounded to a
particular size in order to avoid OutOfMemoryException during data bursts.

B. The ArrayBlockingQueueFactory default implementation doesn't use the
capacity passed in parameter, is this normal ? Maybe it is and I'll add
comments explaining why. Maybe it isn't and I'll fix it.

Once again, thanks for your answers !

Have a nice day,

Antoine.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message