trait ProcessingPolicy[U] extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- ProcessingPolicy
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def tryProcess(processId: String, processingUnit: U): ProcessingResult
Emulates behavior of the storage.
Emulates behavior of the storage. The function is invoked when any of the plugin's operations is executed. If you need this operation to succeed return , otherwise you should return some of the ProcessingFailure's.
- processId
persistenceId or other id of the processing operation
- processingUnit
details about current operation to be executed
- returns
needed result of processing the operation
Policies allow to emulate behavior of the storage (failures and rejections).
type determines operations which storage can perform.