Interface SearchIndexBuilderWorker


  • public interface SearchIndexBuilderWorker
    • Method Detail

      • checkRunning

        void checkRunning()
        Check running, and ping the thread if in a wait state
      • isRunning

        boolean isRunning()
        Should the thread be running
      • destroy

        void destroy()
        destroy the search index builder worker and release all resources
      • removeWorkerLock

        boolean removeWorkerLock()
        forge the removal of the worker lock
        Returns:
      • getLastEventTime

        long getLastEventTime()
        Get the ms time of the last search add/remove event (excluding master events)
        Returns:
      • getLockTransaction

        boolean getLockTransaction​(long lifetime)
        Parameters:
        lifetime -
        Returns:
      • getLockTransaction

        boolean getLockTransaction​(long nodeLifetime,
                                   boolean forceLock)
        Parameters:
        nodeLifetime -
        forceLock - force the lock to be taken even if there are no items in the queue
        Returns:
      • setLastIndex

        void setLastIndex​(long l)
        Parameters:
        l -
      • setStartDocIndex

        void setStartDocIndex​(long startDocIndex)
        Parameters:
        startDocIndex -
      • setNowIndexing

        void setNowIndexing​(String reference)
        Parameters:
        reference -
      • getLastIndex

        long getLastIndex()
        Returns:
      • getNowIndexing

        String getNowIndexing()
        Returns:
      • getStartDocIndex

        long getStartDocIndex()
        Returns:
      • getLastDocument

        String getLastDocument()
      • getLastElapsed

        String getLastElapsed()
      • getCurrentDocument

        String getCurrentDocument()
      • getCurrentElapsed

        String getCurrentElapsed()
      • isLocalLock

        boolean isLocalLock()
        Returns: