public class Config
extends java.lang.Object
构造器和说明 |
---|
Config() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
filterAdd(Filter filter)
添加拦截器
|
Channel |
getChannel() |
Decoder |
getDecoder()
获取解码器
|
Encoder |
getEncoder()
获取编码器(可以为Null)
|
Encoder |
getEncoderOrDefault()
获取编码器或默认(可以为Null)
|
java.util.Set<Filter> |
getFilters()
获取拦截器
|
java.lang.String |
getGroup()
获取服务组
|
java.lang.String |
getHeader(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
int |
getHeartbeat() |
java.lang.String |
getName()
获取服务名
|
java.lang.String |
getPath()
获取服务路径
|
int |
getTimeout() |
java.util.function.Supplier<java.lang.String> |
getUpstream()
获取上游
|
java.lang.String |
getUrl()
获取uri
|
protected Config |
init()
尝试初始化进行补缺
|
void |
setChannel(Channel channel) |
void |
setDecoder(Decoder decoder)
设置解码器
|
void |
setEncoder(Encoder encoder)
设置编码器
|
void |
setGroup(java.lang.String group) |
protected void |
setHeader(java.lang.String name,
java.lang.String val)
设置头
|
void |
setHeartbeat(int heartbeat) |
void |
setName(java.lang.String name) |
void |
setPath(java.lang.String path) |
void |
setTimeout(int timeout) |
protected void |
setUpstream(java.util.function.Supplier<java.lang.String> upstream)
设置上游
|
void |
setUrl(java.lang.String url)
设置uri
|
protected Config init()
public int getTimeout()
public void setTimeout(int timeout)
public int getHeartbeat()
public void setHeartbeat(int heartbeat)
public Encoder getEncoder()
public Encoder getEncoderOrDefault()
public void setEncoder(Encoder encoder)
public Decoder getDecoder()
public void setDecoder(Decoder decoder)
public Channel getChannel()
public void setChannel(Channel channel)
public java.util.function.Supplier<java.lang.String> getUpstream()
protected void setUpstream(java.util.function.Supplier<java.lang.String> upstream)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
protected void setHeader(java.lang.String name, java.lang.String val)
public java.lang.String getHeader(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public java.util.Set<Filter> getFilters()
protected void filterAdd(Filter filter)