test_class.file: dubbo-config/dubbo-config-api/src/test/java/com/alibaba/dubbo/config/ConsumerConfigTest.java
test_class.identifier: ConsumerConfigTest
test_case.body: @Test
      public void testTimeout() throws Exception {
          try {
              System.clearProperty("sun.rmi.transport.tcp.responseTimeout");
              ConsumerConfig consumer = new ConsumerConfig();
              consumer.setTimeout(10);
              assertThat(consumer.getTimeout(), is(10));
              assertThat(System.getProperty("sun.rmi.transport.tcp.responseTimeout"), equalTo("10"));
          } finally {
              System.clearProperty("sun.rmi.transport.tcp.responseTimeout");
          }
      }
test_case.class_method_signature: ConsumerConfigTest.testTimeout()
test_case.full_signature: @Test public void testTimeout()
test_case.identifier: testTimeout
test_case.invocations: clearProperty setTimeout assertThat getTimeout is assertThat getProperty equalTo clearProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTimeout()
focal_class.declarator: serialVersionUID = 2827274711143680600L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 2827274711143680600L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: isDefault
focal_class.modifier: private
focal_class.original_string: private Boolean isDefault;
focal_class.type: Boolean
focal_class.var_name: isDefault
focal_class.declarator: client
focal_class.modifier: private
focal_class.original_string: private String client;
focal_class.type: String
focal_class.var_name: client
focal_class.declarator: threadpool
focal_class.modifier: private
focal_class.original_string: private String threadpool;
focal_class.type: String
focal_class.var_name: threadpool
focal_class.declarator: corethreads
focal_class.modifier: private
focal_class.original_string: private Integer corethreads;
focal_class.type: Integer
focal_class.var_name: corethreads
focal_class.declarator: threads
focal_class.modifier: private
focal_class.original_string: private Integer threads;
focal_class.type: Integer
focal_class.var_name: threads
focal_class.declarator: queues
focal_class.modifier: private
focal_class.original_string: private Integer queues;
focal_class.type: Integer
focal_class.var_name: queues
focal_class.file: dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ConsumerConfig.java
focal_class.identifier: ConsumerConfig
focal_class.class_method_signature: ConsumerConfig.setTimeout(Integer timeout)
focal_class.full_signature: @Override public void setTimeout(Integer timeout)
focal_class.identifier: setTimeout
focal_class.modifiers: @Override public
focal_class.parameters: (Integer timeout)
focal_class.return: void
focal_class.signature: void setTimeout(Integer timeout)
focal_class.class_method_signature: ConsumerConfig.isDefault()
focal_class.full_signature: public Boolean isDefault()
focal_class.identifier: isDefault
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Boolean
focal_class.signature: Boolean isDefault()
focal_class.class_method_signature: ConsumerConfig.setDefault(Boolean isDefault)
focal_class.full_signature: public void setDefault(Boolean isDefault)
focal_class.identifier: setDefault
focal_class.modifiers: public
focal_class.parameters: (Boolean isDefault)
focal_class.return: void
focal_class.signature: void setDefault(Boolean isDefault)
focal_class.class_method_signature: ConsumerConfig.getClient()
focal_class.full_signature: public String getClient()
focal_class.identifier: getClient
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getClient()
focal_class.class_method_signature: ConsumerConfig.setClient(String client)
focal_class.full_signature: public void setClient(String client)
focal_class.identifier: setClient
focal_class.modifiers: public
focal_class.parameters: (String client)
focal_class.return: void
focal_class.signature: void setClient(String client)
focal_class.class_method_signature: ConsumerConfig.getThreadpool()
focal_class.full_signature: public String getThreadpool()
focal_class.identifier: getThreadpool
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getThreadpool()
focal_class.class_method_signature: ConsumerConfig.setThreadpool(String threadpool)
focal_class.full_signature: public void setThreadpool(String threadpool)
focal_class.identifier: setThreadpool
focal_class.modifiers: public
focal_class.parameters: (String threadpool)
focal_class.return: void
focal_class.signature: void setThreadpool(String threadpool)
focal_class.class_method_signature: ConsumerConfig.getDefault()
focal_class.full_signature: public Boolean getDefault()
focal_class.identifier: getDefault
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Boolean
focal_class.signature: Boolean getDefault()
focal_class.class_method_signature: ConsumerConfig.getCorethreads()
focal_class.full_signature: public Integer getCorethreads()
focal_class.identifier: getCorethreads
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getCorethreads()
focal_class.class_method_signature: ConsumerConfig.setCorethreads(Integer corethreads)
focal_class.full_signature: public void setCorethreads(Integer corethreads)
focal_class.identifier: setCorethreads
focal_class.modifiers: public
focal_class.parameters: (Integer corethreads)
focal_class.return: void
focal_class.signature: void setCorethreads(Integer corethreads)
focal_class.class_method_signature: ConsumerConfig.getThreads()
focal_class.full_signature: public Integer getThreads()
focal_class.identifier: getThreads
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getThreads()
focal_class.class_method_signature: ConsumerConfig.setThreads(Integer threads)
focal_class.full_signature: public void setThreads(Integer threads)
focal_class.identifier: setThreads
focal_class.modifiers: public
focal_class.parameters: (Integer threads)
focal_class.return: void
focal_class.signature: void setThreads(Integer threads)
focal_class.class_method_signature: ConsumerConfig.getQueues()
focal_class.full_signature: public Integer getQueues()
focal_class.identifier: getQueues
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getQueues()
focal_class.class_method_signature: ConsumerConfig.setQueues(Integer queues)
focal_class.full_signature: public void setQueues(Integer queues)
focal_class.identifier: setQueues
focal_class.modifiers: public
focal_class.parameters: (Integer queues)
focal_class.return: void
focal_class.signature: void setQueues(Integer queues)
focal_class.superclass: extends AbstractReferenceConfig
focal_method.body: @Override
      public void setTimeout(Integer timeout) {
          super.setTimeout(timeout);
          String rmiTimeout = System.getProperty("sun.rmi.transport.tcp.responseTimeout");
          if (timeout != null && timeout > 0
                  && (rmiTimeout == null || rmiTimeout.length() == 0)) {
              System.setProperty("sun.rmi.transport.tcp.responseTimeout", String.valueOf(timeout));
          }
      }
focal_method.class_method_signature: ConsumerConfig.setTimeout(Integer timeout)
focal_method.full_signature: @Override public void setTimeout(Integer timeout)
focal_method.identifier: setTimeout
focal_method.invocations: setTimeout getProperty length setProperty valueOf
focal_method.modifiers: @Override public
focal_method.parameters: (Integer timeout)
focal_method.return: void
focal_method.signature: void setTimeout(Integer timeout)