Class ClientConnectionManager
java.lang.Object
io.quarkus.websockets.next.runtime.ClientConnectionManager
- All Implemented Interfaces:
OpenClientConnections,Iterable<WebSocketClientConnection>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionClientConnectionManager(jakarta.enterprise.event.Event<WebSocketClientConnection> openEvent, jakarta.enterprise.event.Event<WebSocketClientConnection> closedEvent) -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(String endpoint, WebSocketClientConnection connection) void(package private) voiddestroy()getConnections(String endpoint) iterator()(package private) voidremove(String endpoint, WebSocketClientConnection connection) stream()Returns the stream of all open connections at the given time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.quarkus.websockets.next.OpenClientConnections
findByClientId, findByConnectionId, listAll
-
Constructor Details
-
ClientConnectionManager
ClientConnectionManager(@Open jakarta.enterprise.event.Event<WebSocketClientConnection> openEvent, @Closed jakarta.enterprise.event.Event<WebSocketClientConnection> closedEvent)
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<WebSocketClientConnection>
-
stream
Description copied from interface:OpenClientConnectionsReturns the stream of all open connections at the given time.- Specified by:
streamin interfaceOpenClientConnections- Returns:
- the stream of open connections
-
add
-
remove
-
getConnections
- Parameters:
endpoint-- Returns:
- the connections for the given client endpoint, never
null
-
addListener
-
destroy
@PreDestroy void destroy()
-