Testable (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper

## Interface Testable

-     public interface Testable

  Abstraction that exposes various methods useful for testing ZooKeeper

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `injectSessionExpiration()` Cause the ZooKeeper instance to behave as if the session expired
    `void` | `queueEvent(WatchedEvent event)` Allow an event to be inserted into the event queue

- - ### Method Detail

    - #### injectSessionExpiration

          void injectSessionExpiration()

      Cause the ZooKeeper instance to behave as if the session expired

    - #### queueEvent

          void queueEvent(WatchedEvent event)

      Allow an event to be inserted into the event queue
      Parameters:
        `event` - event to insert

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.