public <T>T create(Class<T> service,TProtocolFactory protocolFactory,Scheduler subscribScheduler,Interceptor... interceptors){
  if (!service.isInterface()) {
    throw new IllegalArgumentException("service should be interface");
  }
  return (T)Proxy.newProxyInstance(service.getClassLoader(),new Class<?>[]{service},new Client(protocolFactory,subscribScheduler,interceptors));
}

public < T > T create ( Class < T > service , TProtocolFactory protocolFactory , Scheduler subscribScheduler , Interceptor ... interceptors ) { if ( ! service . isInterface ( ) ) { throw new IllegalArgumentException ( "service should be interface" ) ; } return ( T ) Proxy . newProxyInstance ( service . getClassLoader ( ) , new Class < ? > [ ] { service } , new Client ( protocolFactory , subscribScheduler , interceptors ) ) ; }
create a dynamic proxy of a specified interface that generated by firefly generator from a service in thrift ' s idl .
