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 void
close()
void
discard()
void
free()
ByteBuffer
getResource()
String
toString()
-
-
-
Constructor Detail
-
PooledAdaptor
public PooledAdaptor(PooledByteBuffer buffer)
-
-
Method Detail
-
discard
public void discard()
- Specified by:
discard
in interfaceorg.xnio.Pooled<ByteBuffer>
-
free
public void free()
- Specified by:
free
in interfaceorg.xnio.Pooled<ByteBuffer>
-
getResource
public ByteBuffer getResource() throws IllegalStateException
- Specified by:
getResource
in interfaceorg.xnio.Pooled<ByteBuffer>
- Throws:
IllegalStateException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.xnio.Pooled<ByteBuffer>
-
-