maxSize,
byteBufferBytes.slice(),
byteBufferBytes.slice());
if (type == Type.REMOTE_PRODUCER) {
final Producer producer = new Producer<E, ByteBufferBytes>(new LocalRingIndex(), bytesDataLocator, bytesDataLocator, new ServerSocketChannelProvider(port), bytesDataLocator, buffer);
ringIndex = producer;
dataLocator = producer;
} else {
ringIndex = new Consumer<ByteBufferBytes>(new LocalRingIndex(), bytesDataLocator, bytesDataLocator, new ClientSocketChannelProvider(port, host), buffer);
dataLocator = bytesDataLocator;