@ThreadSafe public class ScalarContractRegistry extends java.lang.Object implements ContractRegistry
Constructor and Description |
---|
ScalarContractRegistry(com.scalar.db.api.DistributedStorage storage) |
Modifier and Type | Method and Description |
---|---|
void |
bind(ContractEntry entry) |
ContractEntry |
lookup(ContractEntry.Key key) |
java.util.List<ContractEntry> |
scan(java.lang.String entityId) |
java.util.List<ContractEntry> |
scan(java.lang.String entityId,
int certVersion) |
void |
unbind(ContractEntry.Key key) |
@Inject public ScalarContractRegistry(com.scalar.db.api.DistributedStorage storage)
public void bind(ContractEntry entry)
bind
in interface ContractRegistry
public void unbind(ContractEntry.Key key)
unbind
in interface ContractRegistry
public ContractEntry lookup(ContractEntry.Key key)
lookup
in interface ContractRegistry
public java.util.List<ContractEntry> scan(java.lang.String entityId)
scan
in interface ContractRegistry
public java.util.List<ContractEntry> scan(java.lang.String entityId, int certVersion)
scan
in interface ContractRegistry