Package com.io7m.sunburst.inventory.api
Interface SBInventoryFactoryType
- All Known Implementing Classes:
SBInventories
public interface SBInventoryFactoryType
Access to the local inventory.
Multiple processes can open an inventory at any given time, but only one
process should write to it.
-
Method Summary
Modifier and TypeMethodDescriptionopenReadOnly(SBInventoryConfiguration configuration) Open the inventory in read-only mode.openReadWrite(SBInventoryConfiguration configuration) Open the inventory in read-write mode.
-
Method Details
-
openReadOnly
SBInventoryReadableType openReadOnly(SBInventoryConfiguration configuration) throws SBInventoryException Open the inventory in read-only mode.- Parameters:
configuration- The configuration- Returns:
- A readable inventory
- Throws:
SBInventoryException- On errors
-
openReadWrite
Open the inventory in read-write mode.- Parameters:
configuration- The configuration- Returns:
- An inventory
- Throws:
SBInventoryException- On errors
-