Top Description Methods
io.undertow.util

public Interface PooledObject<T>

extends Closeable, AutoCloseable
Known Direct Implementers
io.undertow.util.SimpleObjectPool.SimplePooledObject
Imports
java.io.Closeable

Represents a generic pooled object
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.io.Closeable.close, java.lang.AutoCloseable.close.

Closes this stream and releases any system resources associated with it.

public T

Method Detail

closeback to summary
public void close()

Redeclares java.io.Closeable.close, java.lang.AutoCloseable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

getObjectback to summary
public T getObject()