jetty-9 WriteFlusher cleanup
This commit is contained in:
parent
903e4cd0f2
commit
f6643ccbe7
|
@ -36,8 +36,10 @@ abstract public class WriteFlusher
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
public void write(Object context, Callback callback, ByteBuffer... buffers)
|
public <C> void write(C context, Callback<C> callback, ByteBuffer... buffers)
|
||||||
{
|
{
|
||||||
|
if (callback==null)
|
||||||
|
throw new IllegalArgumentException();
|
||||||
if (!_writing.compareAndSet(false,true))
|
if (!_writing.compareAndSet(false,true))
|
||||||
throw new WritePendingException();
|
throw new WritePendingException();
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue