com.atlassian.jira.index
Class DefaultIndex

java.lang.Object
  extended by com.atlassian.jira.index.DefaultIndex

@ThreadSafe
public class DefaultIndex
extends Object

Uses a DefaultIndex.Engine to perform actual writes to an index.


Nested Class Summary
static class DefaultIndex.Failure
          Indicate that an operation failed.
static class DefaultIndex.Success
          Indicate that an operation completed successfully.
 
Nested classes/interfaces inherited from interface com.atlassian.jira.index.Index
Index.Manager, Index.Operation, Index.Result, Index.UpdateMode
 
Field Summary
 
Fields inherited from interface com.atlassian.jira.util.Closeable
CLOSE
 
Method Summary
 void close()
          Closes this stream and releases any system resources associated with it.
 Index.Result perform(Index.Operation operation)
          Perform an Index.Operation on the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

perform

public Index.Result perform(@Nonnull
                            Index.Operation operation)
Description copied from interface: Index
Perform an Index.Operation on the index.

Parameters:
operation - the work to do.
Returns:
a Result object

close

public 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.



Copyright © 2002-2014 Atlassian. All Rights Reserved.