DiffusionTM Java API 6.5.3
public interface ServerHandler
|Modifier and Type||Interface and Description|
Skeleton server handler implementation.
|Modifier and Type||Method and Description|
Called if the handler is closed.
Notification of a contextual error related to this handler.
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 closed
No further calls will be made for the handler.
void onError(ErrorReason errorReason)
onErroris 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 reason
Copyright © 2020 Push Technology Ltd. All Rights Reserved.