All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ikasoa.core.thrift.AbstractThriftConfiguration Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
package com.ikasoa.core.thrift;

import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocolFactory;
import org.apache.thrift.transport.TFramedTransport;
import org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters;
import org.apache.thrift.transport.TTransportFactory;

import lombok.Data;

/**
 * Thrift服务配置抽象类
 * 
 * @author Larry
 * @version 0.1
 */
@Data
public abstract class AbstractThriftConfiguration {

	/**
	 * Thrift服务传输协议工厂
	 */
	private TProtocolFactory protocolFactory = new TBinaryProtocol.Factory();

	/**
	 * Thrift传输类型工厂
	 */
	private TTransportFactory transportFactory = new TFramedTransport.Factory();

	/**
	 * SSL参数(Null表示不使用SSL)
	 */
	private TSSLTransportParameters sslTransportParameters = null;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy