public class DefaultConnectionIdManager extends Object implements ConnectionIdManager
ConnectionIdManager.
This implementation returns sequentially increasing unique number as connection id.| Constructor and Description |
|---|
DefaultConnectionIdManager() |
| 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.
|
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 © 2020. All rights reserved.