/** set the message/closing listener for this connection */ void setListener(IOFConnectionListener listener);
public IOFConnectionListener getListener() { return listener; }
@Override public void setListener(IOFConnectionListener listener) { }
/** set the connection listener * <p> * Note: this is assumed to be called from the Connection's IO Thread. * * @param listener */ @Override public void setListener(IOFConnectionListener listener) { this.listener = listener; }
/** * 设置监听器 * set the message/closing listener for this connection **/ void setListener(IOFConnectionListener listener);
/** set the connection listener * <p> * Note: this is assumed to be called from the Connection's IO Thread. *假定从ConnectionIO线程调用 * @param listener */ @Override public void setListener(IOFConnectionListener listener) { this.listener = listener; }