public abstract class Endpoint extends Object
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
void |
onClose(Session session,
CloseReason closeReason)
Event that is triggered when a session has closed.
|
void |
onError(Session session,
Throwable throwable)
Event that is triggered when a protocol error occurs.
|
abstract void |
onOpen(Session session,
EndpointConfig config)
Event that is triggered when a new session starts.
|
public abstract void onOpen(Session session, EndpointConfig config)
session
- The new session.config
- The configuration with which the Endpoint was
configured.public void onClose(Session session, CloseReason closeReason)
session
- The sessioncloseReason
- Why the session was closedCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.