Trait

com.weightwatchers.reactive.kinesis.stream

CommittableEvent

Related Doc: package stream

Permalink

trait CommittableEvent[+A] extends AnyRef

The CommittableEvent is passed through the stream. Every event has to be committed explicitly.

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

Abstract Value Members

  1. abstract def commit(successful: Boolean = true): CommittableEvent[A]

    Permalink

    Mark this event as handled.

    Mark this event as handled. If all events of a batch are handled the read position can be advanced.

    successful

    indicates if the event was handled successfully.

  2. abstract def map[B](f: (A) ⇒ B): CommittableEvent[B]

    Permalink

    Change the type of the payload by applying the given function to the payload.

    Change the type of the payload by applying the given function to the payload. This is useful if the payload is changed in different stages and the commit should be applied in a later stage. Note: Committing a mapped event has the same effect as committing the original event - the sequence number is not changed.

    B

    the type of the returned CommittableEvent

    f

    the function to apply to the payload.

    returns

    A CommittableEvent with payload of type B

  3. abstract def mapAsync[B](f: (A) ⇒ Future[B])(implicit ec: ExecutionContext): Future[CommittableEvent[B]]

    Permalink

    Change the type of the payload by applying the async function to the payload.

    Change the type of the payload by applying the async function to the payload. This is useful if the payload is changed in an async stage and the commit should be applied in a later stage. Note: Committing a mapped event has the same effect as committing the original event - the sequence number is not changed.

    B

    the type of the returned CommittableEvent

    f

    the function to apply to the payload.

    ec

    the execution context to use

    returns

    a Future which will be completed with a CommittableEvent with payload of type B

  4. abstract def payload: A

    Permalink

    The payload of this committable event.

    The payload of this committable event.

    returns

    the payload of this event.

  5. abstract def sequenceNumber: CompoundSequenceNumber

    Permalink

    The sequence number of this event.

    The sequence number of this event.

    returns

    the sequence number of this event.

  6. abstract def timestamp: DateTime

    Permalink

    Timestamp when the event has been created.

    Timestamp when the event has been created.

    returns

    timestamp of creation.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped