Package org.jgroups.util
Class OutgoingBufferPool
java.lang.Object
org.jgroups.util.OutgoingBufferPool
Maintains a pool of ExposedDataOutputStreams. The main reason is that a ByteArrayOutputStream starts with 1024
bytes, and almost always increases to 65K (max size of a UDP datagram). We save a few copies when the BAOS increases
its size by pooling those.
- Version:
- $Id: OutgoingBufferPool.java,v 1.1 2007/01/07 01:24:52 belaban Exp $
- Author:
- Bela Ban
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OutgoingBufferPool
public OutgoingBufferPool(int capacity)
-
-
Method Details
-
take
- Throws:
InterruptedException
-
put
- Throws:
InterruptedException
-
dumpStats
-