Object/Class

com.lightbend.lagom.scaladsl.persistence

AggregateEventTag

Related Docs: class AggregateEventTag | package persistence

Permalink

object AggregateEventTag

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

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. def apply[Event <: AggregateEvent[Event]](tag: String)(implicit arg0: ClassTag[Event]): AggregateEventTag[Event]

    Permalink

    Factory method of AggregateEventTag.

  5. def apply[Event <: AggregateEvent[Event]]()(implicit arg0: ClassTag[Event]): AggregateEventTag[Event]

    Permalink

    Convenience factory method of AggregateEventTag that uses the class name of the event type as tag.

    Convenience factory method of AggregateEventTag that uses the class name of the event type as tag. Note that it is needed to retain the original tag when the class name is changed because the tag is part of the store event data.

  6. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def selectShard(numShards: Int, entityId: String): Int

    Permalink

    Select a shard given the number of shards and the ID of the entity.

    Select a shard given the number of shards and the ID of the entity.

    numShards

    The number of shards.

    entityId

    The ID of the entity.

    returns

    The selected shard number.

  18. def shardTag(baseTagName: String, shardNo: Int): String

    Permalink

    Generate a shard tag according to the base tag name and the shard number.

    Generate a shard tag according to the base tag name and the shard number.

    baseTagName

    The base tag name.

    shardNo

    The shard number.

    returns

    The name of the shard tag.

  19. def sharded[Event <: AggregateEvent[Event]](baseTagName: String, numShards: Int)(implicit arg0: ClassTag[Event]): AggregateEventShards[Event]

    Permalink

    Create a sharded aggregate event tag.

    Create a sharded aggregate event tag.

    Events that return this will be tagged with a tag that is based on a hash of the events persistence ID, modulo the number of shards.

    The numShards should be selected up front, and shouldn't change. If it does change, events for the same entity will be produced by different event streams and handled by different shards in the read side processor, leading to out of order event handling.

    baseTagName

    The base name for the tag, this will be combined with the shard number to form the tag name.

    numShards

    The number of shards.

    returns

    The aggregate event shards tagger.

  20. def sharded[Event <: AggregateEvent[Event]](numShards: Int)(implicit arg0: ClassTag[Event]): AggregateEventShards[Event]

    Permalink

    Create an aggregate event shards tagger.

    Create an aggregate event shards tagger.

    This is a convenience function that uses the name of the class as the tag name. Note that if the class name changes, the tag name must be retained, and so this method will no longer be suitable for use.

    Events that return this will be tagged with a tag that is based on a hash of the events persistence ID, modulo the number of shards.

    The numShards should be selected up front, and shouldn't change. If it does change, events for the same entity will be produced by different event streams and handled by different shards in the read side processor, leading to out of order event handling.

    numShards

    The number of shards.

    returns

    The aggregate event shards tagger.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped