Package com.osohq.oso_cloud
Interface BatchTransaction
-
- All Known Implementing Classes:
Api.BatchTransaction
public interface BatchTransactionInterface for building a batch transaction of fact insertions and deletions.Obtain an instance of this interface via the
Consumerpassed toOso.batch(Consumer).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddelete(Fact fact)Stage a fact for deletion within the batch transaction.default voiddelete(FactPattern pattern)Stage facts matching the pattern for deletion within the batch transaction.voidinsert(Fact fact)Stage a fact for insertion within the batch transaction.
-
-
-
Method Detail
-
insert
void insert(Fact fact)
Stage a fact for insertion within the batch transaction.- Parameters:
fact- The fact to insert.
-
delete
default void delete(FactPattern pattern)
Stage facts matching the pattern for deletion within the batch transaction.- Parameters:
pattern- The fact pattern to match for deletion.
-
delete
void delete(Fact fact)
Stage a fact for deletion within the batch transaction.- Parameters:
fact- The fact to delete.
-
-