Interface IDataWriter.Result<T extends IData>

Enclosing interface:
IDataWriter

@NonExtendable public static interface IDataWriter.Result<T extends IData>
  • Method Summary

    Modifier and Type
    Method
    Description
    add(T data)
    Send the data.
    Block lower priority providers from adding data, regardless if current provider added a data or not.
  • Method Details

    • add

      IDataWriter.Result<T> add(T data)
      Send the data. This also blocks addition from lower priority providers.
      Throws:
      NullPointerException - if data is null
      IllegalStateException - if called multiple times in the same closure
    • block

      Block lower priority providers from adding data, regardless if current provider added a data or not. Useful for disabling this data type for specific objects.