public abstract class AbstractIO extends ConcurrentCloseable<IOException> implements IO
IO.KnownSize, IO.OperationType, IO.OutputToInput, IO.PositionKnown, IO.Readable, IO.ReadableByteStream, IO.Resizable, IO.Seekable, IO.Writable, IO.WritableByteStream, IO.WriterAsyncCloseableListenable.Impl| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected byte |
priority |
| Constructor and Description |
|---|
AbstractIO(String description,
byte priority)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getPriority()
Return the priority.
|
String |
getSourceDescription()
Describe the IO, which can be used for logging or debugging purposes.
|
void |
setPriority(byte priority)
Set the priority of asynchronous operations.
|
addCloseListener, addCloseListener, close, closeAsync, closeResources, closeUnderlyingResources, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelClosed, error, errorCancelled, getTaskManager, getWrappedIOlockClose, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerprotected String description
protected byte priority
public AbstractIO(String description, byte priority)
public String getSourceDescription()
IOgetSourceDescription in interface IOpublic byte getPriority()
ConcurrentCloseablegetPriority in interface IOgetPriority in class ConcurrentCloseable<IOException>public void setPriority(byte priority)
IOsetPriority in interface IOCopyright © 2019. All rights reserved.