package org.craft.atom.rpc.spi;

import org.craft.atom.protocol.ProtocolDecoder;
import org.craft.atom.protocol.ProtocolEncoder;
import org.craft.atom.protocol.rpc.model.RpcMessage;

/**
 * RPC protocol 
 * 
 * @author mindwind
 * @version 1.0, Aug 7, 2014
 */
public interface RpcProtocol {
	
	
	/**
	 * @return a new (or reusable) instance of {@link ProtocolEncoder}
	 */
	ProtocolEncoder<RpcMessage> getRpcEncoder();
	
	
	/**
	 * @return a new (or reusable) instance of {@link ProtocolDecoder}
	 */
	ProtocolDecoder<RpcMessage> getRpcDecoder();
	
}

@@ -196,16 +196,61 @@
 rotocol 
+object, provide protocol encoder and decoder.
 %0A * %0A * 

improve - java doc for RpcProtocol