Skip to content

Commit 5368e15

Browse files
author
Adrian Todt
committed
unwrapLists now can be configured at runtime
1 parent b969346 commit 5368e15

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/rethinkdb/net/Connection.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public class Connection implements Closeable {
4545
protected final @Nullable Long timeout;
4646
protected final @Nullable String user;
4747
protected final @Nullable String password;
48-
protected final boolean unwrapLists;
4948
protected final Result.FetchMode defaultFetchMode;
5049

5150
protected final AtomicLong nextToken = new AtomicLong();
@@ -55,6 +54,7 @@ public class Connection implements Closeable {
5554
protected @Nullable String dbname;
5655
protected @Nullable ConnectionSocket socket;
5756
protected @Nullable ResponsePump pump;
57+
protected boolean unwrapLists;
5858

5959
/**
6060
* Creates a new connection based on a {@link Builder}.
@@ -100,6 +100,11 @@ public Connection(Builder b) {
100100
return this;
101101
}
102102

103+
public @NotNull Connection unwrapLists(boolean val) {
104+
unwrapLists = val;
105+
return this;
106+
}
107+
103108
/**
104109
* Checks if the connection is open.
105110
*

0 commit comments

Comments
 (0)