@Override
    public void close() throws IOException {
        if (completionLatch.getCount() == 0) {
            return;
        }

        consumers.values().forEach(LineConsumer::processBuffer);
        consumers.values().forEach(LineConsumer::end);
        super.close();

        completionLatch.countDown();
    }
Set this callback to use the specified consumer for the given output type.
The same consumer can be configured for more than one output type.
@param outputType the output type to configure
@param consumer the consumer to use for that output type
core/src/main/java/org/testcontainers/containers/output/FrameConsumerResultCallback.java