org.hibernate.search.query.engine.spi

## Interface TimeoutManager

- All Known Implementing Classes:
    TimeoutManagerImpl

      public interface TimeoutManager

  Author:
    Emmanuel Bernard

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `TimeoutManager.Type`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Long` | `getTimeoutLeftInMilliseconds()`
    `Long` | `getTimeoutLeftInSeconds()`
    `TimeoutManager.Type` | `getType()`
    `boolean` | `hasPartialResults()`
    `boolean` | `isTimedOut()`
    `void` | `limitFetchingOnTimeout()`
    `void` | `raiseExceptionOnTimeout()`
    `void` | `reactOnQueryTimeoutExceptionWhileExtracting(RuntimeException e)`
    `void` | `setTimeout(long timeout, TimeUnit timeUnit)`
    `void` | `start()`
    `void` | `stop()`

- - ### Method Detail

    - #### start

          void start()

    - #### getTimeoutLeftInMilliseconds

          Long getTimeoutLeftInMilliseconds()

    - #### getTimeoutLeftInSeconds

          Long getTimeoutLeftInSeconds()

    - #### isTimedOut

          boolean isTimedOut()

    - #### stop

          void stop()

    - #### setTimeout

          void setTimeout(long timeout,
                          TimeUnit timeUnit)

    - #### raiseExceptionOnTimeout

          void raiseExceptionOnTimeout()

    - #### limitFetchingOnTimeout

          void limitFetchingOnTimeout()

    - #### reactOnQueryTimeoutExceptionWhileExtracting

          void reactOnQueryTimeoutExceptionWhileExtracting(RuntimeException e)

    - #### hasPartialResults

          boolean hasPartialResults()

    - #### getType

          TimeoutManager.Type getType()

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved