notifyWritePossible

Registers WriteHandler, which will be notified ones Buffer
of "size"-bytes can be written.
Note: using this method from different threads simultaneously may lead
to quick situation changes, so at time WriteHandler is called -
the queue may become busy again. It's recommended to use this method
together with PushBackHandler to have a chance to handle
such a situations properly.

size - number of bytes queue has to be able to accept before notifying
WriteHandler.

Since:

2.2

setMaxPendingBytesPerConnection

void setMaxPendingBytesPerConnection(int maxQueuedWrites)

Configures the maximum number of bytes pending to be written
for a particular Connection.

Parameters:

maxQueuedWrites - maximum number of bytes that may be pending to be
written to a particular Connection.

getMaxPendingBytesPerConnection

int getMaxPendingBytesPerConnection()

Returns:

the maximum number of bytes that may be pending to be written
to a particular Connection. By default, this will be four
times the size of the Socket send buffer size.

getMaxWriteReentrants

int getMaxWriteReentrants()

Returns the maximum number of write() method reentrants a thread
is allowed to made.
This is related to possible write()->onComplete()->write()->...
chain, which may grow infinitely and cause StackOverflow.
Using maxWriteReentrants value it's possible to limit such a chain.

Returns:

the maximum number of write() method reentrants a thread
is allowed to make.

setMaxWriteReentrants

void setMaxWriteReentrants(int maxWriteReentrants)

Sets the maximum number of write() method reentrants a thread
is allowed to made.
This is related to possible write()->onComplete()->write()->...
chain, which may grow infinitely and cause StackOverflow.
Using maxWriteReentrants value it's possible to limit such a chain.

Parameters:

maxWriteReentrants - the maximum number of write() method calls
a thread is allowed to make.