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

com.textrecruit.ustackserver.peer.PeerFactory Maven / Gradle / Ivy

There is a newer version: 1.0.31
Show newest version
package com.textrecruit.ustackserver.peer;

import static org.jboss.netty.channel.Channels.pipeline;

import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;

public class PeerFactory implements ChannelPipelineFactory {

	public PeerFactory()
	{
	}

	public ChannelPipeline getPipeline() throws Exception {
		
		
		// Create a default pipeline implementation.
		ChannelPipeline pipeline = pipeline();
		
		pipeline.addLast("decoder", new PeerDeliveryDecoder());
		pipeline.addLast("encoder", new PeerDeliveryEncoder());
		pipeline.addLast("handler", new PeerHandler());
		
		return pipeline;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy