MCPcopy Create free account
hub / github.com/e2wugui/zeze / getLoginLocal

Method getLoginLocal

ZezeJava/ZezeJava/src/main/java/Zeze/Arch/Online.java:325–334  ·  view source on GitHub ↗
(@NotNull String account, @NotNull String clientId)

Source from the content-addressed store, hash-verified

323 }
324
325 private @NotNull BLocal getLoginLocal(@NotNull String account, @NotNull String clientId) {
326 var bLocals = _tlocal.get(account);
327 if (bLocals == null)
328 throw new IllegalStateException("account not online. " + account);
329 var bLoginLocal = bLocals.getLogins().get(clientId);
330 if (bLoginLocal == null || bLoginLocal.getLoginVersion()
331 != getOrAddOnline(account).getLogins().getOrAdd(clientId).getLoginVersion())
332 throw new IllegalStateException("account.client not online. " + account + "." + clientId);
333 return bLoginLocal;
334 }
335
336 private final ConcurrentHashMap<String, Long> localActiveTimes = new ConcurrentHashMap<>();
337

Callers 2

setLocalBeanMethod · 0.95
getOrAddLocalBeanMethod · 0.95

Calls 5

getOrAddOnlineMethod · 0.95
getMethod · 0.65
getLoginVersionMethod · 0.65
getLoginsMethod · 0.45
getOrAddMethod · 0.45

Tested by

no test coverage detected