XNIO API 3.1.0.Beta1

org.xnio
Interface Pool<T>

Type Parameters:
T - the resource type
All Known Implementing Classes:
ByteBufferSlicePool

public interface Pool<T>

A generic pooled resource manager.


Method Summary
 Pooled<T> allocate()
          Allocate a resource from the pool.
 

Method Detail

allocate

Pooled<T> allocate()
                   throws PoolDepletedException
Allocate a resource from the pool.

Returns:
the resource
Throws:
PoolDepletedException - if no resources are available

XNIO API 3.1.0.Beta1

Copyright © 2010 JBoss, a division of Red Hat, Inc.