class ClusterEnvironment extends AnyRef
All configuration options related to a cluster environment, along with some long-lived resources including a thread-pool.
- Alphabetic
- By Inheritance
- ClusterEnvironment
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
core: CoreEnvironment
Returns the underlying (Java) core-io
CoreEnvironment
that is built from this.Returns the underlying (Java) core-io
CoreEnvironment
that is built from this.Provides access to, amongst other things, the event bus.
-
def
shutdown(timeout: Duration = ...): Unit
Shuts this environment down.
Shuts this environment down. If the application created this (i.e. rather than using one of the convenience
Cluster.create
methods, then it is responsible for calling shutdown on it.This will block until everything is shutdown, or the timeout is exceeded.
Note that once shutdown, the environment cannot be restarted so it is advised to perform this operation at the very last operation in the SDK shutdown process.
- timeout
the timeout to wait maximum.
- def shutdownReactive(timeout: Duration = ...): SMono[Unit]