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             ;
	
	
}

@@ -390,13 +390,22 @@
 s = 
-30000
+Long.MAX_VALUE
 ;%0A%09@
@@ -467,24 +467,33 @@
      = 1    
+         
 ;%0A%09@Getter @
@@ -551,16 +551,25 @@
  = 10   
+         
 ;%0A%09@Gett
@@ -623,32 +623,41 @@
 ss              
+     
+    
 ;%0A%09@Getter @Sett
@@ -711,16 +711,25 @@
         
+         
 ;%0A%09%0A%09%0A%7D%0A

improve - default rpc timeout