Skip to content

Commit 83a1262

Browse files
committed
Deprecate embedded driver
JAVA-3502
1 parent d8abc0d commit 83a1262

9 files changed

+14
-0
lines changed

driver-embedded/src/main/com/mongodb/embedded/client/EmbeddedCluster.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import static java.lang.String.format;
3939
import static java.util.Collections.singletonList;
4040

41+
@SuppressWarnings("deprecation")
4142
final class EmbeddedCluster implements Cluster {
4243

4344
private static final Logger LOGGER = Loggers.getLogger("cluster");

driver-embedded/src/main/com/mongodb/embedded/client/EmbeddedInternalConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import java.util.Collections;
4747
import java.util.List;
4848

49+
@SuppressWarnings("deprecation")
4950
class EmbeddedInternalConnection implements InternalConnection {
5051
private final InternalConnection wrapped;
5152
private final MongoEmbeddedClient client;

driver-embedded/src/main/com/mongodb/embedded/client/EmbeddedInternalConnectionPool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
import static com.mongodb.assertions.Assertions.isTrue;
3333

34+
@SuppressWarnings("deprecation")
3435
class EmbeddedInternalConnectionPool {
3536
private final ConcurrentPool<EmbeddedInternalConnection> pool;
3637
private volatile boolean closed;

driver-embedded/src/main/com/mongodb/embedded/client/EmbeddedServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import static com.mongodb.internal.event.EventListenerHelper.getCommandListener;
5353
import static java.lang.String.format;
5454

55+
@SuppressWarnings("deprecation")
5556
class EmbeddedServer implements Server, Closeable {
5657
private static final Logger LOGGER = Loggers.getLogger("embedded.client");
5758
private static final MongoDriverInformation MONGO_DRIVER_INFORMATION = MongoDriverInformation.builder().driverName("embedded").build();

driver-embedded/src/main/com/mongodb/embedded/client/MongoClientEmbeddedException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
* Exceptions indicating a failure condition with the embedded MongoClient.
2525
*
2626
* @since 3.8
27+
* @deprecated the embedded driver will be removed in the next major release
2728
*/
29+
@Deprecated
2830
public final class MongoClientEmbeddedException extends MongoException {
2931
private static final long serialVersionUID = 8314840681404996248L;
3032

driver-embedded/src/main/com/mongodb/embedded/client/MongoClientSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
*
3838
* @since 3.8
3939
* @mongodb.server.release 4.0
40+
* @deprecated the embedded driver will be removed in the next major release
4041
*/
42+
@Deprecated
4143
@Immutable
4244
public final class MongoClientSettings {
4345
private static final CodecRegistry DEFAULT_CODEC_REGISTRY = com.mongodb.MongoClientSettings.getDefaultCodecRegistry();

driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
*
3030
* @see MongoClient
3131
* @since 3.8
32+
* @deprecated the embedded driver will be removed in the next major release
3233
*/
34+
@Deprecated
3335
public final class MongoClients {
3436

3537
private static MongoEmbeddedLibrary mongoEmbeddedLibrary;

driver-embedded/src/main/com/mongodb/embedded/client/MongoEmbeddedLogLevel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
* The EmbeddedLogLevel represents the supported logging levels for the embedded mongod
2626
*
2727
* @since 3.8
28+
* @deprecated the embedded driver will be removed in the next major release
2829
*/
30+
@Deprecated
2931
public enum MongoEmbeddedLogLevel {
3032
/**
3133
* Turn off logging

driver-embedded/src/main/com/mongodb/embedded/client/MongoEmbeddedSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
* Various settings to configure the underlying mongod library
2727
*
2828
* @since 3.8
29+
* @deprecated the embedded driver will be removed in the next major release
2930
*/
31+
@Deprecated
3032
@Immutable
3133
public final class MongoEmbeddedSettings {
3234
private final String libraryPath;

0 commit comments

Comments
 (0)