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(long closedId)
Notify this manager that id of corresponding connection has addClosedId.
|
long |
getId(Connection connection) |
Set<Long> |
getOpenConnectionIds()
Return set of connection ids that have not yet addClosedId.
|
public long getId(Connection connection)
getId in interface ConnectionIdManagerpublic void addClosedId(long closedId)
ConnectionIdManageraddClosedId in interface ConnectionIdManagerclosedId - addClosedId connection idpublic Set<Long> getOpenConnectionIds()
ConnectionIdManagergetOpenConnectionIds in interface ConnectionIdManagerCopyright © 2017. All rights reserved.