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

@ThreadSafe protected static class DefaultIndexEngine.WriterReference extends Object
Thread-safe holder of the current Writer
  • Method Details

    • commit

      public void commit()
    • close

      public final void close()
      Description copied from interface: Closeable
      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 interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Closeable
    • apply

      public final com.atlassian.jira.index.Writer apply(Index.UpdateMode mode)
      Description copied from interface: Function
      Resolves an output where an input is given.
      Specified by:
      apply in interface Function<Index.UpdateMode,T>
      Specified by:
      apply in interface Function<Index.UpdateMode,T>
      Parameters:
      mode - an object of type D.
      Returns:
      the output of type R.