com.atlassian.bamboo.index
Class AbstractIndexer.FlushAndUnlockIndexerQueueCallback

java.lang.Object
  extended by com.atlassian.bamboo.index.AbstractIndexer.FlushAndUnlockIndexerQueueCallback
All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<Long>
Enclosing class:
AbstractIndexer

protected class AbstractIndexer.FlushAndUnlockIndexerQueueCallback
extends Object
implements com.google.common.util.concurrent.FutureCallback<Long>

FutureCallback that will flush and unlock indexer queue after last task has been processed. Single instance of this callback should be created and added to all created ListenableFutureTasks


Constructor Summary
AbstractIndexer.FlushAndUnlockIndexerQueueCallback(int tasksToProcess, IndexerContext indexerContext)
           
 
Method Summary
 void onFailure(Throwable t)
           
 void onSuccess(Long result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIndexer.FlushAndUnlockIndexerQueueCallback

public AbstractIndexer.FlushAndUnlockIndexerQueueCallback(int tasksToProcess,
                                                          IndexerContext indexerContext)
Method Detail

onSuccess

public void onSuccess(Long result)
Specified by:
onSuccess in interface com.google.common.util.concurrent.FutureCallback<Long>

onFailure

public void onFailure(Throwable t)
Specified by:
onFailure in interface com.google.common.util.concurrent.FutureCallback<Long>


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.