public class GlobalConnectionIdManager extends Object implements ConnectionIdManager
ConnectionIdManager implementation that emits connection IDs(sequential number) unique across all
datasources in JVM.| Constructor and Description |
|---|
GlobalConnectionIdManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClosedId(String closedId)
Notify this manager that id of corresponding connection has addClosedId.
|
String |
getId(Connection connection) |
Set<String> |
getOpenConnectionIds()
Return set of connection ids that have not yet addClosedId.
|
static void |
resetId()
Reset internal id counter.
|
public static void resetId()
public String getId(Connection connection)
getId in interface ConnectionIdManagerpublic void addClosedId(String closedId)
ConnectionIdManageraddClosedId in interface ConnectionIdManagerclosedId - addClosedId connection idpublic Set<String> getOpenConnectionIds()
ConnectionIdManagergetOpenConnectionIds in interface ConnectionIdManagerCopyright © 2023. All rights reserved.