All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taobao.api.internal.toplink.channel.ConnectingChannelHandler Maven / Gradle / Ivy

The newest version!
package com.taobao.api.internal.toplink.channel;


public class ConnectingChannelHandler implements ChannelHandler {
	public Throwable error;
	public Object syncObject = new Object();

	public void onConnect(ChannelContext context) {
		synchronized (syncObject) {
			syncObject.notify();
		}
	}

	public void onMessage(ChannelContext context) {
	}

	public void onError(ChannelContext context) {
		error = context.getError();
		synchronized (syncObject) {
			syncObject.notify();
		}
	}

	public void onClosed(String reason) {
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy