Implement allocation-friendly method to get user count in SimpUserRegistry
SPR-14930
(cherry picked from commit a929e9c)
This commit is contained in:
committed by
Juergen Hoeller
parent
ac30bcb0eb
commit
8de100b116
@@ -141,6 +141,11 @@ public class DefaultSimpUserRegistry implements SimpUserRegistry, SmartApplicati
|
||||
return new HashSet<SimpUser>(this.users.values());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getUserCount() {
|
||||
return this.users.size();
|
||||
}
|
||||
|
||||
public Set<SimpSubscription> findSubscriptions(SimpSubscriptionMatcher matcher) {
|
||||
Set<SimpSubscription> result = new HashSet<SimpSubscription>();
|
||||
for (LocalSimpSession session : this.sessions.values()) {
|
||||
|
||||
Reference in New Issue
Block a user