Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BaseXdb/basex
/ createId
Method
createId
basex-api/src/main/java/org/basex/http/ws/WsPool.java:143–146 ·
view source on GitHub ↗
Creates a new, unused WebSocket ID. @return new ID
()
Source
from the content-addressed store, hash-verified
141
* @
return
new
ID
142
*/
143
private
static
synchronized String createId() {
144
websocketId = Math.max(0, websocketId + 1);
145
return
PREFIX + websocketId;
146
}
147
}
Callers
1
add
Method · 0.95
Calls
1
max
Method · 0.45
Tested by
no test coverage detected