@Override public void initClose() { closeSession(null, ApplicationError.SYSTEM_SHUTDOWN, false); }
@Override public void initClose() { closeSession(null, ApplicationError.SYSTEM_SHUTDOWN, false); }
@Override public void initClose() { closeSession(null, ApplicationError.SYSTEM_SHUTDOWN, false); }
/** * Is called if the underlying connection was closed from the remote side. * Won't be called if the user issues the close, since the client will then move * to the {@link WaitingForDisconnectState} directly. * @param closeReason An optional reason why the connection closed. */ void onConnectionClosed(Throwable closeReason) { if (closeReason == null) closeReason = new ApplicationError(ApplicationError.TRANSPORT_CLOSED); closeSession(closeReason, null, true); }
/** * Is called if the underlying connection was closed from the remote side. * Won't be called if the user issues the close, since the client will then move * to the {@link WaitingForDisconnectState} directly. * @param closeReason An optional reason why the connection closed. */ void onConnectionClosed(Throwable closeReason) { if (closeReason == null) closeReason = new ApplicationError(ApplicationError.TRANSPORT_CLOSED); closeSession(closeReason, null, true); }
/** * Is called if the underlying connection was closed from the remote side. * Won't be called if the user issues the close, since the client will then move * to the {@link WaitingForDisconnectState} directly. * @param closeReason An optional reason why the connection closed. */ void onConnectionClosed(Throwable closeReason) { if (closeReason == null) closeReason = new ApplicationError(ApplicationError.TRANSPORT_CLOSED); closeSession(closeReason, null, true); }
void onSessionError(ApplicationError error, String closeReason) { boolean reconnectAllowed = !stateController.clientConfig().closeClientOnErrors(); if (!reconnectAllowed) { // Record the error that happened during the session stateController.setCloseError(error); } closeSession(error, closeReason, reconnectAllowed); }
void onSessionError(ApplicationError error, String closeReason) { boolean reconnectAllowed = !stateController.clientConfig().closeClientOnErrors(); if (!reconnectAllowed) { // Record the error that happened during the session stateController.setCloseError(error); } closeSession(error, closeReason, reconnectAllowed); }
void onSessionError(ApplicationError error, String closeReason) { boolean reconnectAllowed = !stateController.clientConfig().closeClientOnErrors(); if (!reconnectAllowed) { // Record the error that happened during the session stateController.setCloseError(error); } closeSession(error, closeReason, reconnectAllowed); }