solomax commented on code in PR #293:
URL: https://github.com/apache/openjpa/pull/293#discussion_r4522698346
##########
openjpa-kernel/src/main/java/org/apache/openjpa/event/TCPRemoteCommitProvider.java:
##########
@@ -634,6 +733,76 @@ public void run() {
}
}
+ /**
+ * The outcome of the check of an incoming connection on the accept
thread.
+ */
+ private enum Admission {
+ /** The connection is closed. */
+ REJECTED,
+ /** The connection comes from this host or a known peer. */
+ PEER,
+ /**
+ * The connection comes from an unknown host; it is only received
if a refresh of the addresses finds
+ * the host, see {@link ReceiveSocketHandler#isPeerAfterRefresh()}.
+ */
+ UNKNOWN_HOST
+ }
+
+ private List<TCPRemoteCommitProvider> providers() {
+ synchronized (_providers) {
+ return new ArrayList<>(_providers);
Review Comment:
```suggestion
return List.copyOf(_providers);
```
?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]