public interface Testable
Modifier and Type | Method and Description |
---|---|
default void |
closeSocket()
Close the ClientCnxn socket for testing purposes
|
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
|
void injectSessionExpiration()
void queueEvent(WatchedEvent event)
event
- event to insertdefault void closeSocket() throws IOException
IOException
Copyright © 2008–2025 The Apache Software Foundation. All rights reserved.