public interface FollowerService
Modifier and Type | Method | Description |
---|---|---|
void |
changeMutedAt(int deltaSeconds) |
Change muted time of follower service
|
void |
decreaseExpiresAt(int decreaseSeconds) |
Decrease time to expiration follower service
|
void |
decreaseStartedCallbacks() |
Decrement number of started callbacks of follower service
|
java.time.ZonedDateTime |
expiresAt() |
Get expiration time for callback subscription.
|
double |
getCallbacksSpent() |
Get origin-days spent for callbacks in follower service
|
int |
getStartedCallbacks() |
Get number of started callbacks in follower service
|
void |
increaseCallbacksSpent(double addSpent) |
Increase origin-days spent for callbacks of follower service
|
void |
increaseStartedCallbacks() |
Increment number of started callbacks of follower service
|
java.time.ZonedDateTime |
mutedAt() |
Getting the time to which it is possible to send callbacks (as long as there is enough money to send at least 1 callback).
|
void |
save() |
Save changes in follower service to ledger
|
void |
scheduleCallbackProcessor(Contract updatingItem,
ItemState state,
NSmartContract contract,
MutableEnvironment me,
CallbackService callbackService) |
Schedule callback processor for one callback.
|
void |
setExpiresAndMutedAt(java.time.ZonedDateTime expiresAt,
java.time.ZonedDateTime mutedAt) |
Set expiration and muted time for follower service.
|
void |
setExpiresAt(java.time.ZonedDateTime expiresAt) |
Set expiration time for follower service.
|
void |
setMutedAt(java.time.ZonedDateTime mutedAt) |
Set muted time for follower service.
|
java.time.ZonedDateTime expiresAt()
java.time.ZonedDateTime mutedAt()
void setExpiresAt(java.time.ZonedDateTime expiresAt)
expiresAt
- is expiration time for follower servicevoid setMutedAt(java.time.ZonedDateTime mutedAt)
mutedAt
- is muted time for follower servicevoid setExpiresAndMutedAt(java.time.ZonedDateTime expiresAt, java.time.ZonedDateTime mutedAt)
expiresAt
- is expiration time for follower servicemutedAt
- is muted time for follower servicedouble getCallbacksSpent()
int getStartedCallbacks()
void decreaseExpiresAt(int decreaseSeconds)
decreaseSeconds
- is interval in seconds for which subscription time is reducedvoid changeMutedAt(int deltaSeconds)
deltaSeconds
- is interval in seconds for which subscription muted time is changedvoid increaseCallbacksSpent(double addSpent)
addSpent
- is spent origin-daysvoid increaseStartedCallbacks()
void decreaseStartedCallbacks()
void scheduleCallbackProcessor(Contract updatingItem, ItemState state, NSmartContract contract, MutableEnvironment me, CallbackService callbackService)
updatingItem
- is new revision of following contractstate
- is state of new revision of following contractcontract
- is follower contractme
- is environmentcallbackService
- is node callback servicevoid save()