package org.craft.atom.protocol.rpc.model;

import java.net.InetSocketAddress;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * A <code>RpcOption</code> provides optional information about rpc invocation.
 * 
 * @author mindwind
 * @version 1.0, Aug 8, 2014
 */
@ToString
public class RpcOption {
	
	
	@Getter @Setter private long              rpcTimeoutInMillis = 30000;
	@Getter @Setter private int               rpcThreads         = 1    ;
	@Getter @Setter private int               rpcQueues          = 10   ;
	@Getter @Setter private InetSocketAddress localAddress              ;
	@Getter @Setter private InetSocketAddress remoteAddress             ;
	
	
}

package org.craft.atom.protocol.rpc.model;

import java.net.InetSocketAddress;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * A <code>RpcOption</code> provides optional information about rpc invocation.
 * 
 * @author mindwind
 * @version 1.0, Aug 8, 2014
 */
@ToString
public class RpcOption {
	
	
	@Getter @Setter private long              rpcTimeoutInMillis = Long.MAX_VALUE;
	@Getter @Setter private int               rpcThreads         = 1             ;
	@Getter @Setter private int               rpcQueues          = 10            ;
	@Getter @Setter private InetSocketAddress localAddress                       ;
	@Getter @Setter private InetSocketAddress remoteAddress                      ;
	
	
}

improve - default rpc timeout