Documented the possibility of thread safety issues in BufferedWriteHandler due to wrong queue implementation
This commit is contained in:
parent
c35231ae95
commit
2958023950
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user