Package io.undertow.util
Class PooledAdaptor
- java.lang.Object
-
- io.undertow.util.PooledAdaptor
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.xnio.Pooled<java.nio.ByteBuffer>
public class PooledAdaptor extends java.lang.Object implements org.xnio.Pooled<java.nio.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()
java.nio.ByteBuffer
getResource()
java.lang.String
toString()
-
-
-
Constructor Detail
-
PooledAdaptor
public PooledAdaptor(PooledByteBuffer buffer)
-
-
Method Detail
-
discard
public void discard()
- Specified by:
discard
in interfaceorg.xnio.Pooled<java.nio.ByteBuffer>
-
free
public void free()
- Specified by:
free
in interfaceorg.xnio.Pooled<java.nio.ByteBuffer>
-
getResource
public java.nio.ByteBuffer getResource() throws java.lang.IllegalStateException
- Specified by:
getResource
in interfaceorg.xnio.Pooled<java.nio.ByteBuffer>
- Throws:
java.lang.IllegalStateException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceorg.xnio.Pooled<java.nio.ByteBuffer>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-