| Package | Description |
|---|---|
| com.mongodb |
The core mongodb package
|
| com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
| com.mongodb.event |
This package contains cluster and connection event related classes
|
| com.mongodb.internal.event |
| Modifier and Type | Method and Description |
|---|---|
List<ServerListener> |
MongoClientOptions.getServerListeners()
Gets the list of added
ServerListener. |
| Modifier and Type | Method and Description |
|---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.addServerListener(ServerListener serverListener)
Adds the given server listener.
|
| Modifier and Type | Method and Description |
|---|---|
List<ServerListener> |
ServerSettings.getServerListeners()
Gets the server listeners.
|
| Modifier and Type | Method and Description |
|---|---|
ServerSettings.Builder |
ServerSettings.Builder.addServerListener(ServerListener serverListener)
Add a server listener.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ServerEventMulticaster
Deprecated.
register multiple server listeners instead
|
class |
ServerListenerAdapter
An adapter for server listener implementations, for clients that want to listen for a subset of server events.
|
| Modifier and Type | Method and Description |
|---|---|
List<ServerListener> |
ServerEventMulticaster.getServerListeners()
Deprecated.
Gets the server listeners.
|
| Constructor and Description |
|---|
ServerEventMulticaster(List<ServerListener> serverListeners)
Deprecated.
Construct an instance with the given list of server listeners
|
| Modifier and Type | Field and Description |
|---|---|
static ServerListener |
EventListenerHelper.NO_OP_SERVER_LISTENER |
| Modifier and Type | Method and Description |
|---|---|
static ServerListener |
EventListenerHelper.createServerListener(ServerSettings serverSettings,
ServerListener additionalServerListener) |
| Modifier and Type | Method and Description |
|---|---|
static ServerListener |
EventListenerHelper.createServerListener(ServerSettings serverSettings,
ServerListener additionalServerListener) |
Copyright © 2017. All Rights Reserved.