Package com.io7m.sunburst.inventory.api
Interface SBTransactionWritableType
- All Superinterfaces:
AutoCloseable,SBTransactionCloseableType
- All Known Subinterfaces:
SBTransactionType
The type of transactions that can write data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidblobAdd(SBBlob blob, InputStream stream) Write a blob to the inventory.voidblobRemove(SBBlob blob) Remove a blob from the inventory.voidpackagePut(SBPackage pack) Write a package to the inventory.Methods inherited from interface com.io7m.sunburst.inventory.api.SBTransactionCloseableType
close
-
Method Details
-
blobAdd
Write a blob to the inventory.- Parameters:
blob- The blobstream- The input stream- Throws:
SBInventoryException- On errors
-
blobRemove
Remove a blob from the inventory. This can only work if the blob is not referenced by any packages.- Parameters:
blob- The blob- Throws:
SBInventoryException- On errors
-
packagePut
Write a package to the inventory.- Parameters:
pack- The package- Throws:
SBInventoryException- On errors
-