Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deprecate Session#reset() #327

Merged
merged 1 commit into from
Mar 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions driver/src/main/java/org/neo4j/driver/v1/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,16 @@ public interface Session extends Resource, StatementRunner
* any statement that is currently executing and ignores any subsequently queued statements. Following
* the reset, the current transaction will have been rolled back and any outstanding failures will
* have been acknowledged.
*
* @deprecated This method should not be used and violates the expected usage pattern of {@link Session} objects.
* They are expected to be not thread-safe and should not be shared between thread. However this method is only
* useful when {@link Session} object is passed to another monitoring thread that calls it when appropriate.
* It is not useful when {@link Session} is used in a single thread because in this case {@link #close()}
* can be used. Since version 3.1, Neo4j database allows users to specify maximum transaction execution time and
* contains procedures to list and terminate running queries. These functions should be used instead of calling
* this method.
*/
@Deprecated
void reset();

/**
Expand Down