SAP Ariba interview question

Explain producer consumer in java