This interface is only used by deprecated methods and will be removed in a future release.
@Deprecated public interface ServerHandler
session.| Modifier and Type | Interface and Description |
|---|---|
static class |
ServerHandler.Default
Deprecated.
Skeleton server handler implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onClose()
Deprecated.
Called if the handler is closed.
|
void |
onError(ErrorReason errorReason)
Deprecated.
Notification of a contextual error related to this handler.
|
void |
onRegistered(Registration registration)
Deprecated.
Called when the handler has been successfully registered with the server.
|
void onRegistered(Registration registration)
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.
registration - a reference that allows the handler to be closedvoid onClose()
close.
No further calls will be made for the handler.
void onError(ErrorReason errorReason)
onError is called include the session being closed before the
handler is registered, a communication timeout, or a problem with the
provided parameters. No further calls will be made to this handler.errorReason - a value representing the error; this can be one of
constants defined in ErrorReason, or a feature-specific
reasonCopyright © 2025 DiffusionData Limited. All rights reserved.