@SuppressWarnings("unchecked")
    private SpscChannelProducer<E> newProducer(final Class<E> type, final Object... args) {
        return mapper.newFlyweight(SpscChannelProducer.class, "ChannelProducerTemplate.java",
                Template.fromFile(Channel.class, "ChannelProducerTemplate.java"), args);
    }
This is to be used for an IPC queue with the direct buffer used being a memory mapped file.

@param buffer
@param requestedCapacity
jctools-channels/src/main/java/org/jctools/channels/spsc/SpscChannel.java