Package org.apache.zookeeper
Interface Testable
-
public interface TestableAbstraction that exposes various methods useful for testing ZooKeeper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcloseSocket()Close the ClientCnxn socket for testing purposesvoidinjectSessionExpiration()Cause the ZooKeeper instance to behave as if the session expiredvoidqueueEvent(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
-
closeSocket
default void closeSocket() throws IOExceptionClose the ClientCnxn socket for testing purposes- Throws:
IOException
-
-