MutableEnvironment
public interface ImmutableEnvironment
NContract
methods, e.g. NContract.query(ImmutableEnvironment, String, Binder)
and NContract.onRevoked(ImmutableEnvironment)
and like.
Note tha the envidonment associated with NContract
must be destroyed when the NContract is revoked.Modifier and Type | Method | Description |
---|---|---|
<T,U extends T> |
get(java.lang.String keyName,
U defaultValue) |
Read access to the instance server-size key-value store.
|
<T extends Contract> |
getContract() |
There is always and instance of the contract available.
|
FollowerService |
getFollowerService() |
|
FollowerService |
getFollowerService(boolean init) |
|
@NonNull java.time.ZonedDateTime |
instanceCreatedAt() |
The instance when this contract was created at THIS NODE (calling Node).
|
java.lang.Iterable<NameRecordEntry> |
nameRecordEntries() |
|
java.lang.Iterable<NameRecord> |
nameRecords() |
|
java.lang.Iterable<ContractStorage> |
storages() |
|
java.lang.Iterable<ContractSubscription> |
subscriptions() |
|
java.util.List<ErrorRecord> |
tryAllocate(java.util.Collection<java.lang.String> reducedNamesToAllocate,
java.util.Collection<HashId> originsToAllocate,
java.util.Collection<java.lang.String> addressesToAllocate) |
<T extends Contract> @NonNull T getContract()
T
- contract type<T,U extends T> T get(java.lang.String keyName, U defaultValue)
T
- U
- keyName
- key namedefaultValue
- value to return if the KV store is empty@NonNull java.time.ZonedDateTime instanceCreatedAt()
com.icodici.universa.node.Ledger
stored, e.g. com.icodici.universa.node.StateRecord#createdAt
will be the right value.java.lang.Iterable<ContractSubscription> subscriptions()
java.lang.Iterable<ContractStorage> storages()
java.lang.Iterable<NameRecord> nameRecords()
java.lang.Iterable<NameRecordEntry> nameRecordEntries()
FollowerService getFollowerService(boolean init)
FollowerService getFollowerService()
java.util.List<ErrorRecord> tryAllocate(java.util.Collection<java.lang.String> reducedNamesToAllocate, java.util.Collection<HashId> originsToAllocate, java.util.Collection<java.lang.String> addressesToAllocate)