org.simpleframework.http.socket.service
Interface Service
public interface Service
The Service interface represents a service that can be
used to communicate with the WebSocket protocol defined in RFC 6455.
Typically a service will implement a sub-protocol negotiated from
the initiating HTTP request. The service should be considered a
hand off point rather than an place to implement business logic.
- Author:
- Niall Gallagher
- See Also:
FrameChannel
|
Method Summary |
void |
connect(Session session)
This method connects a new session with a service implementation. |
connect
void connect(Session session)
- This method connects a new session with a service implementation.
Connecting a session with a service in this way should not block
as it could cause starvation of the servicing thread pool.
- Parameters:
session - the new session to connect to the service
Copyright © 2014. All Rights Reserved.