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

com.taobao.api.internal.toplink.channel.tcp.TcpServerChannelSender Maven / Gradle / Ivy

package com.taobao.api.internal.toplink.channel.tcp;

import java.util.HashMap;
import java.util.Map;

import org.jboss.netty.channel.Channel;

import com.taobao.api.internal.toplink.channel.ServerChannelSender;

public class TcpServerChannelSender extends TcpChannelSender implements ServerChannelSender{
	private Map context;

	public TcpServerChannelSender(Channel channel) {
		super(channel);
		this.context = new HashMap();
	}

	@Override
	public Object getContext(Object key) {
		return this.context.get(key);
	}

	@Override
	public void setContext(Object key, Object value) {
		this.context.put(key, value);
	}

	public boolean isOpen() {
		return this.channel.isOpen();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy