powered by Jive Software

ArrayBlockingQueueWithShutdown Size

Greetings

Considering the ArrayBlockingQueueWithShutdown of the packet writer located at the XMPPTCPConnection why the size is 500.

Also I would like to know if the size affects the packet transmission.

For example if I set the queue size 5.000 what whould be the result?

Thank you

Also I would like to know if the size affects the packet transmission.
The size only comes into play if PacketWriter is unable put the Packets/Stanza on the wire with the same speed they are send by the application. Consider an application that sends packets at a high rate on a low bandwidth connection. Then, after the queue has reached 500 entries, calls to sendPacket() will block until there is again some space in the queue.