Mercurial > 510Connectbot
annotate src/ch/ethz/ssh2/ConnectionMonitor.java @ 425:b284b8f9e535 stable-1.9.0-8
cleanup logging
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 31 Oct 2014 17:22:05 -0700 |
parents | 071eccdff8ea |
children |
rev | line source |
---|---|
273
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 /* |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved. |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 * Please refer to the LICENSE.txt for licensing details. |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 */ |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 package ch.ethz.ssh2; |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 /** |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
8 * A <code>ConnectionMonitor</code> is used to get notified when the |
307 | 9 * underlying socket of a connection is closed. |
10 * | |
273
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 * @author Christian Plattner |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 * @version 2.50, 03/15/10 |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 */ |
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 |
307 | 15 public interface ConnectionMonitor { |
16 /** | |
17 * This method is called after the connection's underlying | |
18 * socket has been closed. E.g., due to the {@link Connection#close()} request of the | |
19 * user, if the peer closed the connection, due to a fatal error during connect() | |
20 * (also if the socket cannot be established) or if a fatal error occured on | |
21 * an established connection. | |
22 * <p> | |
23 * This is an experimental feature. | |
24 * <p> | |
25 * You MUST NOT make any assumption about the thread that invokes this method. | |
26 * <p> | |
27 * <b>Please note: if the connection is not connected (e.g., there was no successful | |
28 * connect() call), then the invocation of {@link Connection#close()} will NOT trigger | |
29 * this method.</b> | |
30 * | |
31 * @see Connection#addConnectionMonitor(ConnectionMonitor) | |
32 * | |
33 * @param reason Includes an indication why the socket was closed. | |
34 */ | |
35 public void connectionLost(Throwable reason); | |
273
91a31873c42a
start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
36 } |