object AggregateEventTag
- Source
- AggregateEventTag.scala
- Alphabetic
- By Inheritance
- AggregateEventTag
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[Event <: AggregateEvent[Event]](tag: String)(implicit arg0: ClassTag[Event]): AggregateEventTag[Event]
Factory method of AggregateEventTag.
-
def
apply[Event <: AggregateEvent[Event]]()(implicit arg0: ClassTag[Event]): AggregateEventTag[Event]
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. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
selectShard(numShards: Int, entityId: String): Int
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.
-
def
shardTag(baseTagName: String, shardNo: Int): String
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.
-
def
sharded[Event <: AggregateEvent[Event]](baseTagName: String, numShards: Int)(implicit arg0: ClassTag[Event]): AggregateEventShards[Event]
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.
-
def
sharded[Event <: AggregateEvent[Event]](numShards: Int)(implicit arg0: ClassTag[Event]): AggregateEventShards[Event]
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()