Top Description Fields Constructors Methods
com.amazon.ion.impl.bin.utf8

pack-priv abstract Class Poolable<T extends Poolable<T>>

extends Object
implements Closeable
Class Inheritance
All Implemented Interfaces
java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
com.amazon.ion.impl.bin.utf8.PoolableByteBuffer, com.amazon.ion.impl.bin.utf8.Utf8StringDecoder, com.amazon.ion.impl.bin.utf8.Utf8StringEncoder
Type Parameters
<T>
the concrete type.
Imports
java.io.Closeable

Base class for types that may be pooled.

Field Summary

Modifier and TypeField and Description
private final Pool<T>

Constructor Summary

AccessConstructor and Description
pack-priv
Poolable(Pool<T>
the pool to which the object will be returned upon close().
pool
)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Attempts to return this instance to the pool with which it is associated, if any.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

poolback to summary
private final Pool<T> pool

Constructor Detail

Poolableback to summary
pack-priv Poolable(Pool<T> pool)
Parameters
pool:Pool<T>

the pool to which the object will be returned upon close().

Method Detail

closeback to summary
public void close()

Implements java.io.Closeable.close.

Attempts to return this instance to the pool with which it is associated, if any. Do not continue to use this instance after calling this method.

Annotations
@Override