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 int               rpcTimeoutInMillis = -1;
	@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;
	@Getter @Setter private InetSocketAddress localAddress      ;
	@Getter @Setter private InetSocketAddress remoteAddress     ;
	
}

fix - change time-out to long