mirror of
https://github.com/corda/corda.git
synced 2025-06-17 06:38:21 +00:00
Merge pull request #627 from corda/mnesbit-servicehub-cleanup2
Remove scheduler service from ServiceHub
This commit is contained in:
@ -39,7 +39,6 @@ interface ServiceHub : ServicesForResolution {
|
||||
val keyManagementService: KeyManagementService
|
||||
override val storageService: StorageService
|
||||
val networkMapCache: NetworkMapCache
|
||||
val schedulerService: SchedulerService
|
||||
val transactionVerifierService: TransactionVerifierService
|
||||
val clock: Clock
|
||||
val myInfo: NodeInfo
|
||||
|
@ -363,28 +363,6 @@ interface TxWritableStorageService : StorageService {
|
||||
override val validatedTransactions: TransactionStorage
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides access to schedule activity at some point in time. This interface might well be expanded to
|
||||
* increase the feature set in the future.
|
||||
*
|
||||
* If the point in time is in the past, the expectation is that the activity will happen shortly after it is scheduled.
|
||||
*
|
||||
* The main consumer initially is an observer of the vault to schedule activities based on transactions as they are
|
||||
* recorded.
|
||||
*/
|
||||
interface SchedulerService {
|
||||
/**
|
||||
* Schedule a new activity for a TX output, probably because it was just produced.
|
||||
*
|
||||
* Only one activity can be scheduled for a particular [StateRef] at any one time. Scheduling a [ScheduledStateRef]
|
||||
* replaces any previously scheduled [ScheduledStateRef] for any one [StateRef].
|
||||
*/
|
||||
fun scheduleStateActivity(action: ScheduledStateRef)
|
||||
|
||||
/** Unschedule all activity for a TX output, probably because it was consumed. */
|
||||
fun unscheduleStateActivity(ref: StateRef)
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides verification service. The implementation may be a simple in-memory verify() call or perhaps an IPC/RPC.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user