Skip to content

一个支持thrift协议的客户端工程,支持负载均衡、failover、异步连接池、异步调用模式等。

Notifications You must be signed in to change notification settings

yikangfeng/thrift-protocol-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

thrift-protocol-client

一个支持thrift协议的客户端工程,支持负载均衡、支持zookeeper service 节点自动发现、failover、异步连接池、异步调用模式等。 jdk version:jdk1.7+ QQ:814912127 QQ群:413012474 EMAIL:[email protected]

build service to client example:

final ThriftProtocolService<ThriftClientRequest, byte[]> serve = ThriftProtocolClientBuilder
			.safeBuild(ThriftProtocolClientBuilder
					.get()
					.codec(FACTORY)
					.dest("zk!bw-kvm-cy-01.dns.ganji.com:2181!/soa/services/test.postlimitservice.thrift!0")
					.hostConnectionLimit(2)
					.logger(LoggerFactory
							.getLogger("thrift-post-limit-service-client")));

About

一个支持thrift协议的客户端工程,支持负载均衡、failover、异步连接池、异步调用模式等。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published