public abstract static class ServerHandler.Default extends Object implements ServerHandler
The methods on this handler simply log callbacks at debug level.
ServerHandler.Default
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
onActive(RegisteredHandler registeredHandler)
Called when the handler has been registered at the server and is now
active.
|
void |
onClose()
Called if the handler is closed.
|
public void onActive(RegisteredHandler registeredHandler)
ServerHandler
A session can register at most one a single handler of each type. If
there is already a handler registered the operation will fail,
registeredHandler
will be closed, and the session error handler
will be notified. To change the handler, first
close
the previous handler.
onActive
in interface ServerHandler
registeredHandler
- a reference that allows the handler to be closedpublic void onClose()
ServerHandler
close
.onClose
in interface ServerHandler
Copyright © 2024 DiffusionData Ltd. All Rights Reserved.