?? connectorlistener.java
字號:
/*
* Copyright 2004 WIT-Software, Lda.
* - web: http://www.wit-software.com
* - email: info@wit-software.com
*
* All rights reserved. Relased under terms of the
* Creative Commons' Attribution-NonCommercial-ShareAlike license.
*/
package handlers;
import java.nio.channels.SocketChannel;
/**
* Callback interface for receiving events from a Connector.
*
* @author Nuno Santos
*/
public interface ConnectorListener {
/**
* Called when the connection is fully established.
* @param connector The source of this event.
* @param sc The newly connected socket.
*/
public void connectionEstablished(Connector connector, SocketChannel sc);
/**
* Called when the connection fails to be established.
* @param connector The source of this event.
* @param cause The cause of the error.
*/
public void connectionFailed(Connector connector, Exception cause);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -