chrisdutz commented on code in PR #818: URL: https://github.com/apache/plc4x/pull/818#discussion_r1115300155
########## plc4j/tools/connection-cache/src/main/java/org/apache/plc4x/java/utils/cache/CachedPlcConnectionManager.java: ########## @@ -58,21 +58,33 @@ public CachedPlcConnectionManager(PlcConnectionManager connectionManager, Durati this.connectionContainers = new HashMap<>(); } + @Override public PlcConnection getConnection(String url) throws PlcConnectionException { + return getConnection(url,null); + } + + @Override + public PlcConnection getConnection(String url, PlcAuthentication authentication) throws PlcConnectionException { ConnectionContainer connectionContainer; synchronized (connectionContainers) { connectionContainer = connectionContainers.get(url); Review Comment: As this now includes the authentication, we should probably have a more generic "getContainerId" method, that takes a url and authentication and if authentication is not null, then it sort of does a "url + authentication.toString()" to allow multiple connections with different users (I could imagine this being a topic in OPC-UA) -- 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: dev-unsubscr...@plc4x.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org