File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
driver/src/main/java/org/neo4j/driver/v1 Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,16 @@ public interface Session extends Resource, StatementRunner
116
116
* any statement that is currently executing and ignores any subsequently queued statements. Following
117
117
* the reset, the current transaction will have been rolled back and any outstanding failures will
118
118
* have been acknowledged.
119
+ *
120
+ * @deprecated This method should not be used and violates the expected usage pattern of {@link Session} objects.
121
+ * They are expected to be not thread-safe and should not be shared between thread. However this method is only
122
+ * useful when {@link Session} object is passed to another monitoring thread that calls it when appropriate.
123
+ * It is not useful when {@link Session} is used in a single thread because in this case {@link #close()}
124
+ * can be used. Since version 3.1, Neo4j database allows users to specify maximum transaction execution time and
125
+ * contains procedures to list and terminate running queries. These functions should be used instead of calling
126
+ * this method.
119
127
*/
128
+ @ Deprecated
120
129
void reset ();
121
130
122
131
/**
You can’t perform that action at this time.
0 commit comments