All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zeroc.Glacier2.SessionCallback Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

package com.zeroc.Glacier2;

/**
 * A callback class to get notifications of status changes in the Glacier2 session.
 * All callbacks on the Callback interface occur in the main swing thread.
 */
public interface SessionCallback
{
    /**
     * Notifies the application that the communicator was created.
     *
     * @param session The Glacier2 session.
     */
    void createdCommunicator(SessionHelper session);

    /**
     * Notifies the application that the Glacier2 session has been established.
     *
     * @param session The established session.
     *
     * @throws SessionNotExistException If the session no longer exists.
     */
    void connected(SessionHelper session)
        throws SessionNotExistException;

    /**
     * Notifies the application that the Glacier2 session has been disconnected.
     *
     * @param session The disconnected session.
     */
    void disconnected(SessionHelper session);

    /**
     * Notifies the application that the Glacier2 session establishment failed.
     *
     * @param session The session reporting the connection failure.
     * @param ex The exception.
     */
    void connectFailed(SessionHelper session, Throwable ex);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy