com.atlassian.bamboo.index
Class AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback
java.lang.Object
com.atlassian.bamboo.index.AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback
- All Implemented Interfaces:
- com.google.common.util.concurrent.FutureCallback<java.lang.Long>
- Enclosing class:
- AbstractIndexer
protected class AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback
- extends java.lang.Object
- implements com.google.common.util.concurrent.FutureCallback<java.lang.Long>
FutureCallback that will calculate total execution time and store it after last task has been processed
Single instance of this callback should be created and added to all created ListenableFutureTasks
|
Method Summary |
void |
onFailure(java.lang.Throwable t)
|
void |
onSuccess(java.lang.Long result)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback
public AbstractIndexer.UpdateApproximateIndexingTimePerResultCallback(int tasksToProcess,
int indexedEntityCount)
onSuccess
public void onSuccess(java.lang.Long result)
- Specified by:
onSuccess in interface com.google.common.util.concurrent.FutureCallback<java.lang.Long>
onFailure
public void onFailure(java.lang.Throwable t)
- Specified by:
onFailure in interface com.google.common.util.concurrent.FutureCallback<java.lang.Long>
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.