trait ProcessingPolicy[U] extends AnyRef

Policies allow to emulate behavior of the storage (failures and rejections).

U

type determines operations which storage can perform.

Annotations
@ApiMayChange()
Source
ProcessingPolicy.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProcessingPolicy
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. 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 ProcessingSuccess, 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