package org.craft.atom.rpc.spi;

import java.io.IOException;
import java.net.SocketAddress;

/**
 * RPC acceptor.
 * 
 * 
 * @author mindwind
 * @version 1.0, Aug 6, 2014
 */
public interface RpcAcceptor {
	
	
	/**
	 * Bind to settled local address.
	 * 
	 * @throws IOException, thrown while bind failed.
	 */
	void bind() throws IOException;
	
	/**
	 * Set rpc processor
	 * 
	 * @param processor
	 */
	void setProcessor(RpcProcessor processor);
	
	/**
	 * Set rpc protocol
	 * 
	 * @param protocol
	 */
	void setProtocol(RpcProtocol protocol);
	
	/**
	 * Set address to bind.
	 * 
	 * @param address
	 */
	void setAddress(SocketAddress address);
	
	/**
	 * Set io timeout in millisecond
	 * 
	 * @param ioTimeoutInMillis
	 */
	void setIoTimeoutInMillis(int ioTimeoutInMillis);
	
}

@@ -275,35 +275,39 @@
 tion
-, thrown while bind failed.
+ If some other I/O error occurs
 %0A%09 *

fix - RpcAcceptor.bind() javadoc throws