public interface ContractStorage
The subscribers (NContract
instances) subscribe to contracts to store them for some amount of time. All
subscriptions share same copy of the stored contract. When the last susbscription to this revision is destroyed or
expired, the copy is dropped.
Note that subscriptions are private to NContract
instances and visible only to it. When the NContract is
revoked, all its subscriptions must be destroyed.
Modifier and Type | Method | Description |
---|---|---|
java.time.ZonedDateTime |
expiresAt() |
Get expiration time for contract storage.
|
Contract |
getContract() |
|
byte[] |
getPackedContract() |
|
void |
setExpiresAt(java.time.ZonedDateTime expiredAt) |
Set expiration time for contract storage.
|
java.time.ZonedDateTime expiresAt()
Contract getContract()
byte[] getPackedContract()
void setExpiresAt(java.time.ZonedDateTime expiredAt)
expiredAt
- is expiration time for contract storage