Package com.atlassian.jira.util
Interface Closeable
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Subinterfaces:
CloseableIterator<E>
,Index.Manager
,IndexingStrategy
,IssueIterator
- All Known Implementing Classes:
CloseableBackupBuilder
,CompositeCloseable
,DefaultIndex
,DefaultIndexEngine
,DefaultIndexEngine.WriterReference
,MultiThreadedIndexingStrategy
,SimpleIndexingStrategy
,WriterWithStats
A Closeable is a source or destination of data that can be closed. The close method is invoked to release resources that the object is
holding (such as open files).
Straight copy of the java.util.Closeable interface except it doesn't throw IOException
- Since:
- v3.13
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this stream and releases any system resources associated with it.
-
Field Details
-
CLOSE
SimpleConsumer
implementation that closes all elements.
-
-
Method Details
-
close
void 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.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
RuntimeIOException
- if an I/O error occurs
-