@SuppressWarnings("SameParameterValue")
    private static void addSerializer(final int idx, final Serializer serializer) {
        if (serializers.length <= idx) {
            final Serializer[] newSerializers = new Serializer[idx + 5];
            System.arraycopy(serializers, 0, newSerializers, 0, serializers.length);
            serializers = newSerializers;
        }
        serializers[idx] = serializer;
    }
Holds all serializers.

@author jiachun.fjc
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/serialization/Serializers.java