public class InstrumentingIOPool.Buffer extends DecoratingEntry<IOPool.Entry<E>> implements IOPool.Entry<E>
Entry.Access, Entry.Size, Entry.Type
delegate
ALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
Buffer(IOPool.Entry<E> delegate) |
Modifier and Type | Method and Description |
---|---|
InputSocket<E> |
getInputSocket()
Returns an input socket for reading this entry.
|
OutputSocket<E> |
getOutputSocket()
Returns an output socket for writing this entry.
|
void |
release()
Releases this resource to its pool.
|
getName, getSize, getTime, toString
protected Buffer(IOPool.Entry<E> delegate)
public InputSocket<E> getInputSocket()
InputEntry
IOSocket.getLocalTarget()
of the returned socket
must return this entry.getInputSocket
in interface InputEntry<E extends IOPool.Entry<E>>
public OutputSocket<E> getOutputSocket()
OutputEntry
IOSocket.getLocalTarget()
of the returned socket
must return this entry.getOutputSocket
in interface OutputEntry<E extends IOPool.Entry<E>>
public void release() throws IOException
Pool.Releasable
release
in interface Pool.Releasable<IOException>
IOException
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.