Packages

abstract class ProcessingManifest[F[_]] extends AnyRef

Base trait for processing manifest functionality

F

effect producing by interaction with manifest

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProcessingManifest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProcessingManifest(resolver: Resolver[F])(implicit F: ManifestAction[F])

Abstract Value Members

  1. abstract def fetch(processedBy: Option[Application], state: Option[State])(implicit F: ManifestAction[F], S: Sync[F]): Stream[F, ItemId]
  2. abstract def getItem(id: ItemId): F[Option[Item]]

    Get state of single item, with validating state of Item

  3. abstract def put(itemId: ItemId, app: Application, previousRecordId: Option[UUID], state: State, author: Option[Agent], payload: Option[Payload]): F[(UUID, Instant)]

    Add an atomic record to manifest

  4. abstract def stream(implicit S: Sync[F]): Stream[F, Record]

    Get full manifest

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def getUnprocessed(itemIds: Stream[F, ItemId], predicate: (Item) ⇒ Boolean)(implicit S: Sync[F]): F[List[Item]]

    Get items from collection of ids that: + were processed by preprocessor application + were NOT yet processed by specified application + match predicate function + not in "blocked" or "failed" state

    Get items from collection of ids that: + were processed by preprocessor application + were NOT yet processed by specified application + match predicate function + not in "blocked" or "failed" state

    predicate

    filter function to get only valid Items, e.g. containing particular payload

  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def processAll(app: Application, predicate: (Item) ⇒ Boolean, acquirePayload: Option[Payload], process: Process)(implicit S: Sync[F]): F[Unit]

    Apply Process function to all items unprocessed by app For each item, lock will be held.

    Apply Process function to all items unprocessed by app For each item, lock will be held. If any of items already holding a lock, function breaks immediately

  16. def processItem(app: Application, acquirePayload: Option[Payload], process: Process)(item: Item): F[(UUID, Instant)]

    Acquire lock, apply processing function and write its result back to manifest

  17. def processNewItem(id: ItemId, app: Application, acquirePayload: Option[Payload], process: ProcessNew): F[Unit]

    Similar to processItem, but works without existing Item, instead it creates new one itself or queries it by known id Should be used when app is both adding item to manifest and processes it straight afterwards

    Similar to processItem, but works without existing Item, instead it creates new one itself or queries it by known id Should be used when app is both adding item to manifest and processes it straight afterwards

    id

    new item id, which should be either fetched or created

    app

    application doing discovering and processing

    acquirePayload

    optional payload that will be added as part of Processing, can be e.g. notification that app started to process it with some special configuration (cross-batch dedupe enabled)

    process

    Process that does not expect existing item

  18. def query(preparedBy: Option[Application], requester: Option[Application])(implicit S: Sync[F]): Stream[F, ItemId]

    Get ids of items that were processed by processedBy and NOT processed by application Most common kind of query for Processing Manifest.

  19. val resolver: Resolver[F]
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped