Documented the possibility of thread safety issues in BufferedWriteHandler due to wrong queue implementation

This commit is contained in:
Trustin Lee 2009-12-16 08:35:30 +00:00
parent c35231ae95
commit 2958023950

View File

@ -103,9 +103,9 @@ public class BufferedWriteHandler extends SimpleChannelDownstreamHandler {
}
/**
* Creates a new instance with the specified unbounded {@link Queue}.
* Please note that specifying a bounded {@link Queue} might result in
* an unspecified behavior.
* Creates a new instance with the specified thread-safe unbounded
* {@link Queue}. Please note that specifying a bounded {@link Queue} or
* a thread-unsafe {@link Queue} will result in an unspecified behavior.
*/
public BufferedWriteHandler(Queue<MessageEvent> queue) {
if (queue == null) {