public class PooledAdaptor extends Object implements org.xnio.Pooled<ByteBuffer>
Constructor and Description |
---|
PooledAdaptor(PooledByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void | close() |
void | discard() |
void | free() |
ByteBuffer | getResource() |
public PooledAdaptor(PooledByteBuffer buffer)
public void discard()
discard
in interface org.xnio.Pooled<ByteBuffer>
public void free()
free
in interface org.xnio.Pooled<ByteBuffer>
public ByteBuffer getResource() throws IllegalStateException
getResource
in interface org.xnio.Pooled<ByteBuffer>
IllegalStateException
public void close()
close
in interface AutoCloseable
close
in interface org.xnio.Pooled<ByteBuffer>
Copyright © 2017 JBoss by Red Hat. All rights reserved.