Interface Consumer

All Known Implementing Classes:
QueryConsumer

public interface Consumer
Interface for components that persist JSON data to storage backends. Implementations handle storing data in databases, files, or other persistence targets.
Author:
jbanes
  • Method Summary

    Modifier and Type
    Method
    Description
    com.invirgance.convirgance.json.JSONArray
    consume(Iterable<com.invirgance.convirgance.json.JSONObject> iterable, com.invirgance.convirgance.json.JSONObject parameters)
    Processes and persists a collection of JSON objects.
  • Method Details

    • consume

      com.invirgance.convirgance.json.JSONArray consume(Iterable<com.invirgance.convirgance.json.JSONObject> iterable, com.invirgance.convirgance.json.JSONObject parameters)
      Processes and persists a collection of JSON objects.
      Parameters:
      iterable - The collection of objects to persist
      parameters - Additional parameters that may influence the operation
      Returns:
      A JSONArray containing generated keys or other metadata from the operation