Interface for data processing components that can create, update and delete data items.
Description
The IWriter interface is used by data processng components that can create, update and delete data items.
Instance methods
create
Creates a data item.
Future<T?> create(String? correlation_id, T? item)
- correlation_id: String? - (optional) transaction id used to trace execution through the call chain.
- item: T? - item to be created.
- returns: Future<T?> - created item
update
Updates a data item.
Future<T?> update(Stringv correlation_id, T? item)
- correlation_id: String? - (optional) transaction id used to trace execution through the call chain.
- item: T? - item to be updated.
- returns: Future<T?> - updated item
deleteById
Updates a data item.
Future<T?> deleteById(String? correlation_id, K? id)
- correlation_id: String? - (optional) transaction id used to trace execution through the call chain.
- id: K? - id of the item to be deleted
- returns: Future<T> - deleted item.