private static void registerAllocType(int type, String name) {
        if (ALLOC_TYPE.containsKey(type)) {
            throw new IllegalArgumentException("type already registered: " + type + "=" + ALLOC_TYPE.get(type));
        }

        if (type > MAX_TYPE_NUMBER) {
            throw new IllegalArgumentException("type: " + type + ", name: " + name + "." +
                "exceed MAX_TYPE_NUMBER please change the relate code");
        }

        ALLOC_TYPE.put(type, name);
    }
Get the chunk size of the allocator.
It returns {@link Optional#empty} if the {@link #policy} is not {@link ByteBufAllocPolicy#isPooled}.
s3stream/src/main/java/com/automq/stream/s3/ByteBufAlloc.java