org.jboss.cache.marshall.io
Class ObjectStreamPool
java.lang.Object
org.jboss.cache.marshall.io.ObjectStreamPool
public class ObjectStreamPool
- extends Object
A stream pool
- Since:
- 2.1.0
- Author:
- Manik Surtani (manik@jboss.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectStreamPool
public ObjectStreamPool()
getOutputStream
public ReusableObjectOutputStream getOutputStream()
throws InterruptedException
- Returns:
- the next available ObjectOutputStream
- Throws:
InterruptedException
getInputStream
public ObjectInputStream getInputStream(byte[] buf)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
returnStreamToPool
public void returnStreamToPool(ReusableObjectOutputStream stream)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
returnStreamToPool
public void returnStreamToPool(ObjectInputStream stream)
throws InterruptedException,
IOException
- Throws:
InterruptedException
IOException
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.