Package io.undertow.util
Class PooledAdaptor
- java.lang.Object
-
- io.undertow.util.PooledAdaptor
-
- All Implemented Interfaces:
AutoCloseable,org.xnio.Pooled<ByteBuffer>
public class PooledAdaptor extends Object implements org.xnio.Pooled<ByteBuffer>
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description PooledAdaptor(PooledByteBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddiscard()voidfree()ByteBuffergetResource()StringtoString()
-
-
-
Constructor Detail
-
PooledAdaptor
public PooledAdaptor(PooledByteBuffer buffer)
-
-
Method Detail
-
discard
public void discard()
- Specified by:
discardin interfaceorg.xnio.Pooled<ByteBuffer>
-
free
public void free()
- Specified by:
freein interfaceorg.xnio.Pooled<ByteBuffer>
-
getResource
public ByteBuffer getResource() throws IllegalStateException
- Specified by:
getResourcein interfaceorg.xnio.Pooled<ByteBuffer>- Throws:
IllegalStateException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.xnio.Pooled<ByteBuffer>
-
-