public class ConfigSerializer extends AbstractCommonSerializer<Configuration>
构造器和说明 |
---|
ConfigSerializer() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(java.lang.Object o)
rpc传输配置的时候,判断配置是否是从ConfigContext拿出来的单例
|
Configuration |
deserialize(java.io.InputStream in)
手动反序列化
|
void |
serialize(Configuration obj,
java.io.OutputStream out)
序列化到out
|
mark
public void serialize(Configuration obj, java.io.OutputStream out) throws java.lang.Exception
Serializer
java.lang.Exception
public Configuration deserialize(java.io.InputStream in) throws java.lang.Exception
Serializer
java.lang.Exception
public boolean accept(java.lang.Object o)
o
-