public abstract class Endpoint
extends java.lang.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,
java.lang.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 closedpublic void onError(Session session, java.lang.Throwable throwable)
session
- The session.throwable
- The exception.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.