Package org.atmosphere.websocket
Interface WebSocketFactory
- All Known Implementing Classes:
DefaultWebSocketFactory
public interface WebSocketFactory
A factory for retrieving
WebSocket-
Method Summary
-
Method Details
-
find
Deprecated.UsefindWebSocket(String)which returnsOptionalinstead of null.Retrieve theWebSocketassociated with a uuid. The uuid could be the one returned by theAtmosphereResource.uuid()or an application generated one.- Parameters:
uuid- a UUID associated- Returns:
- WebSocket, or null if not found.
-
findWebSocket
Retrieve theWebSocketassociated with a uuid. The uuid could be the one returned by theAtmosphereResource.uuid()or an application generated one.This is the preferred alternative to
find(String)as it returns anOptionalinstead of null, making the absent-websocket case explicit at the call site.
-
findWebSocket(String)which returnsOptionalinstead of null.