org.hibernate.search.hcore.spi

## Interface EnvironmentSynchronizer

- All Superinterfaces:
    Serializable, Service

      public interface EnvironmentSynchronizer
      extends Service

  A service allowing to postpone Hibernate initialization works to a later time, when the environment (e.g. provided services such as `BeanResolver`) will be ready to accept requests.
  Since:
    5.8
  Experimental
    This type is under active development. You should be prepared for incompatible changes in future releases.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `whenEnvironmentReady(Runnable runnable)` Run the given work as soon as the environment is deemed "ready" (exactly what "ready" means is implementation-dependent).

- - ### Method Detail

    - #### whenEnvironmentReady

          void whenEnvironmentReady(Runnable runnable)

      Run the given work as soon as the environment is deemed "ready" (exactly what "ready" means is implementation-dependent).

      If the environment is already "ready", run the work now, synchronously.

      Parameters:
        `runnable` -

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