org.jboss.cache.marshall.io
Class ObjectStreamPool

java.lang.Object
  extended by org.jboss.cache.marshall.io.ObjectStreamPool

public class ObjectStreamPool
extends Object

A stream pool

Since:
2.1.0
Author:
Manik Surtani (manik@jboss.org)

Constructor Summary
ObjectStreamPool()
           
 
Method Summary
 ObjectInputStream getInputStream(byte[] buf)
           
 ReusableObjectOutputStream getOutputStream()
           
 void returnStreamToPool(ObjectInputStream stream)
           
 void returnStreamToPool(ReusableObjectOutputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStreamPool

public ObjectStreamPool()
Method Detail

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.