Interface Pipeline

All Superinterfaces:
org.teavm.jso.JSObject

public interface Pipeline extends org.teavm.jso.JSObject
A Pipelines binding. Declared with pipeline(), named PIPELINE by default.

Ingests records for batching into R2. Send, and the pipeline handles the rest.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    send(TSObject... records)
    Sends records.
    default void
    Sends one record given as JSON.
    org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject>
    sendRecords(org.teavm.jso.core.JSArray<TSObject> records)
     

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • send

      default void send(TSObject... records)
      Sends records.
      Parameters:
      records - the records
    • sendJson

      default void sendJson(String json)
      Sends one record given as JSON.
      Parameters:
      json - the record, serialised
    • sendRecords

      org.teavm.jso.core.JSPromise<org.teavm.jso.JSObject> sendRecords(org.teavm.jso.core.JSArray<TSObject> records)