class ProtocolFactory {

    protected static synchronized void registerAdaptiveProtocol(ProtocolInfo protocolInfo) {
        // 取最大偏移量
        maxMagicOffset = Math.max(maxMagicOffset, protocolInfo.magicFieldOffset() + protocolInfo.magicFieldLength());
    }

}