1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
13 * A callback class to get notifications of status changes in the Glacier2 session.
14 * All callbacks on the <code>Callback</code> interface occur in the main swing thread.
16 public interface SessionCallback
19 * Notifies the application that the communicator was created.
21 * @param session The Glacier2 session.
23 void createdCommunicator(SessionHelper session
);
26 * Notifies the application that the Glacier2 session has been established.
28 * @param session The established session.
30 void connected(SessionHelper session
)
31 throws SessionNotExistException
;
34 * Notifies the application that the Glacier2 session has been disconnected.
36 * @param session The disconnected session.
38 void disconnected(SessionHelper session
);
41 * Notifies the application that the Glacier2 session establishment failed.
43 * @param session The session reporting the connection
45 * @param ex The exception.
47 void connectFailed(SessionHelper session
, Throwable ex
);