ICE 3.4.2
[php5-ice-freebsdport.git] / java / src / Glacier2 / SessionCallback.java
blob0250eb49a211081f8f1b7e7934de10e0baad16e3
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 package Glacier2;
12 /**
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
18 /**
19 * Notifies the application that the communicator was created.
21 * @param session The Glacier2 session.
23 void createdCommunicator(SessionHelper session);
25 /**
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;
33 /**
34 * Notifies the application that the Glacier2 session has been disconnected.
36 * @param session The disconnected session.
38 void disconnected(SessionHelper session);
40 /**
41 * Notifies the application that the Glacier2 session establishment failed.
43 * @param session The session reporting the connection
44 * failure.
45 * @param ex The exception.
47 void connectFailed(SessionHelper session, Throwable ex);