Package com.atlassian.jira.index
Class DefaultIndexEngine.WriterReference
java.lang.Object
com.atlassian.jira.index.DefaultIndexEngine.WriterReference
- All Implemented Interfaces:
Closeable,Function<Index.UpdateMode,,com.atlassian.jira.index.Writer> Closeable,AutoCloseable,Function<Index.UpdateMode,com.atlassian.jira.index.Writer>
- Enclosing class:
- DefaultIndexEngine
Thread-safe holder of the current Writer
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal com.atlassian.jira.index.Writerapply(Index.UpdateMode mode) Resolves an outputwhere an input is given. final voidclose()Closes this stream and releases any system resources associated with it.voidcommit()
-
Method Details
-
commit
public void commit() -
close
public final void close()Description copied from interface:CloseableCloses this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. -
apply
Description copied from interface:FunctionResolves an outputwhere an input is given. - Specified by:
applyin interfaceFunction<Index.UpdateMode,T> - Specified by:
applyin interfaceFunction<Index.UpdateMode,T> - Parameters:
mode- an object of type D.- Returns:
- the output of type R.
-