概览
序列化:Record、InputArchive、OutputArchive、Index
持久化:TxnLog、SnapShot、FileSnap、FileTxnSnapLog
网络通信:ClientCnxn、ServerCnxn
监听:Watcher、WathcerManager、WatchedEvent(KeeperState、EventType)
序列化
record
zk中所有的序列化反序列化都实现这个
1 | interface Record { |
index
序列化时数据迭代器,
1 | public interface Index { |
input/outputArchive
序列化反序列化用,默认实现是BinaryInput/OutputArchive