@InterfaceAudience.Public @InterfaceStability.Evolving public interface ZooKeeperServerEmbedded extends AutoCloseable
The server will run inside the same process.
Typical usecases are:
Please take into consideration that in production usually it is better to not run the client together with the server in order to avoid race conditions, especially around how ephemeral nodes work.
Modifier and Type | Interface and Description |
---|---|
static class |
ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder
Builder for ZooKeeperServerEmbedded.
|
Modifier and Type | Method and Description |
---|---|
static ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder |
builder() |
void |
close()
Shutdown gracefully the server and wait for resources to be released.
|
void |
start()
Start the server.
|
static ZooKeeperServerEmbedded.ZookKeeperServerEmbeddedBuilder builder()
void close()
close
in interface AutoCloseable
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.