com.avaje.ebean.config.lucene
Interface IndexUpdateFuture


public interface IndexUpdateFuture

A Future returned when indexes are updated.

Author:
rbygrave

Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 Integer get()
          Return the number of entries updated.
 Integer get(long timeout, TimeUnit unit)
          Return the number of entries updated with a timeout.
 Class<?> getBeanType()
          Return the type of the bean index being updated.
 boolean isCancelled()
          Return true if the update is cancelled.
 boolean isDone()
          Return true if the update is finished.
 

Method Detail

getBeanType

Class<?> getBeanType()
Return the type of the bean index being updated.


isCancelled

boolean isCancelled()
Return true if the update is cancelled.


cancel

boolean cancel(boolean mayInterruptIfRunning)

get

Integer get()
            throws InterruptedException,
                   ExecutionException
Return the number of entries updated.

Throws:
InterruptedException
ExecutionException

get

Integer get(long timeout,
            TimeUnit unit)
            throws InterruptedException,
                   ExecutionException,
                   TimeoutException
Return the number of entries updated with a timeout.

Throws:
InterruptedException
ExecutionException
TimeoutException

isDone

boolean isDone()
Return true if the update is finished.



Copyright © 2011. All Rights Reserved.