Skip to content

Commit

Permalink
bump the driver version to 5.2.0
Browse files Browse the repository at this point in the history
add new method
  • Loading branch information
evanchooly committed Oct 15, 2024
1 parent b58d768 commit 12b8a14
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions core/src/main/java/dev/morphia/transactions/SessionDatastore.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.mongodb.client.result.InsertManyResult;
import com.mongodb.client.result.InsertOneResult;
import com.mongodb.client.result.UpdateResult;
import com.mongodb.internal.TimeoutContext;
import com.mongodb.lang.NonNull;
import com.mongodb.lang.Nullable;
import com.mongodb.session.ServerSession;
Expand Down Expand Up @@ -44,6 +45,8 @@ public class SessionDatastore extends MorphiaDatastore implements MorphiaSession

private final ClientSession session;

private TimeoutContext timeoutContext;

/**
* Creates a new session.
*
Expand Down Expand Up @@ -275,6 +278,15 @@ public BsonDocument getClusterTime() {
return session.getClusterTime();
}

@Override
public TimeoutContext getTimeoutContext() {
return timeoutContext;
}

public void setTimeoutContext(TimeoutContext timeoutContext) {
this.timeoutContext = timeoutContext;
}

@Override
public void close() {
session.close();
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<properties>
<kotlin.version>2.0.21</kotlin.version>
<awaitility.version>1.7.0</awaitility.version>
<driver.version>5.1.4</driver.version>
<driver.minor.version>5.1</driver.minor.version>
<driver.version>5.2.0</driver.version>
<driver.minor.version>5.2</driver.minor.version>
<jackson.version>2.18.0</jackson.version>
<json.assert.version>1.5.3</json.assert.version>
<javapoet.version>1.13.0</javapoet.version>
Expand Down

0 comments on commit 12b8a14

Please sign in to comment.