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}.
|
* Creates a new instance with the specified thread-safe unbounded
|
||||||
* Please note that specifying a bounded {@link Queue} might result in
|
* {@link Queue}. Please note that specifying a bounded {@link Queue} or
|
||||||
* an unspecified behavior.
|
* a thread-unsafe {@link Queue} will result in an unspecified behavior.
|
||||||
*/
|
*/
|
||||||
public BufferedWriteHandler(Queue<MessageEvent> queue) {
|
public BufferedWriteHandler(Queue<MessageEvent> queue) {
|
||||||
if (queue == null) {
|
if (queue == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user