You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: driver/src/main/java/org/neo4j/driver/reactive/RxResult.java
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,8 @@ public interface RxResult
46
46
* When this publisher is {@linkplain Publisher#subscribe(Subscriber) subscribed}, the query statement is sent to the server and get executed.
47
47
* This method does not start the record streaming nor publish query execution error.
48
48
* To retrieve the execution result, either {@link #records()} or {@link #summary()} can be used.
49
-
* {@link #records()} starts record streaming and report query execution error.
50
-
* {@link #summary()} skips record streaming and directly report query execution error.
49
+
* {@link #records()} starts record streaming and reports query execution error.
50
+
* {@link #summary()} skips record streaming and directly reports query execution error.
51
51
* <p>
52
52
* Consuming of execution result ensures the resources (such as network connections) used by this result is freed correctly.
53
53
* Consuming the keys without consuming the execution result will result in resource leak.
@@ -66,7 +66,7 @@ public interface RxResult
66
66
* <p>
67
67
* When the record publisher is {@linkplain Publisher#subscribe(Subscriber) subscribed},
68
68
* the query statement is executed and the query result is streamed back as a record stream followed by a result summary.
69
-
* This record publisher publishes all records in the result and signal the completion.
69
+
* This record publisher publishes all records in the result and signals the completion.
70
70
* However before completion or error reporting if any, a cleanup of result resources such as network connection will be carried out automatically.
71
71
* <p>
72
72
* Therefore the {@link Subscriber} of this record publisher shall wait for the termination signal (complete or error)
@@ -77,13 +77,13 @@ public interface RxResult
77
77
* But it will not cancel the query execution.
78
78
* As a result, a termination signal (complete or error) will still be sent to the {@link Subscriber} after the query execution is finished.
79
79
* <p>
80
-
* The record publishing event by default runs in Netty IO thread, as a result no blocking operation is allowed in this thread.
80
+
* The record publishing event by default runs in an Network IO thread, as a result no blocking operation is allowed in this thread.
81
81
* Otherwise network IO might be blocked by application logic.
82
82
* <p>
83
83
* This publisher can only be subscribed by one {@link Subscriber} once.
84
84
* <p>
85
-
* If this publisher is subscribed after {@link #keys()}, then the publish of records is carried out once each record arrives.
86
-
* If this publisher is subscribed after {@link #summary()}, then the publish of records has been cancelled
85
+
* If this publisher is subscribed after {@link #keys()}, then the publish of records is carried out after the arrival of keys.
86
+
* If this publisher is subscribed after {@link #summary()}, then the publish of records is already cancelled
87
87
* and an empty publisher of zero record will be return.
88
88
* @return a cold unicast publisher of records.
89
89
*/
@@ -94,7 +94,7 @@ public interface RxResult
94
94
* <p>
95
95
* {@linkplain Publisher#subscribe(Subscriber) Subscribing} the summary publisher results in the execution of the query followed by the result summary returned.
96
96
* The summary publisher cancels record publishing if not yet subscribed and directly streams back the summary on query execution completion.
97
-
* As a result, the invocation of {@link #records()} after this method, would receive a empty publisher.
97
+
* As a result, the invocation of {@link #records()} after this method, would receive an empty publisher.
98
98
* <p>
99
99
* If subscribed after {@link #keys()}, then the result summary will be published after the query execution without streaming any record to client.
100
100
* If subscribed after {@link #records()}, then the result summary will be published after the query execution and the streaming of records.
0 commit comments