public class NHeadTransportStrategy extends Object implements TransportStrategy
TransStrategy接口| 限定符和类型 | 字段和说明 |
|---|---|
protected Adler32 |
checksum
bigpipe规定的校验方式
|
protected String |
provider
nshead提供者为beidou-bigpipe
|
protected SocketConf |
socketConf
socket 配置信息
|
| 构造器和说明 |
|---|
NHeadTransportStrategy() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
applySocketConf(SocketConf conf)
应用socket配置
|
ByteBuffer |
buildSimpleCommand(byte[] buf)
抽象构建bigpipe协议的command对象
|
String |
getProvider()
提供NsHeader协议的提供者属性
|
protected String provider
protected final Adler32 checksum
protected SocketConf socketConf
public ByteBuffer buildSimpleCommand(byte[] buf)
TransportStrategybuildSimpleCommand 在接口中 TransportStrategypublic String getProvider()
TransportStrategygetProvider 在接口中 TransportStrategypublic void applySocketConf(SocketConf conf)
TransportStrategyapplySocketConf 在接口中 TransportStrategyCopyright © 2017. All rights reserved.