Add AggregateID for the PlayerNotificationEventListener and CommandHandler

This commit is contained in:
2025-04-14 23:39:50 +02:00
parent 0374712824
commit 1a96c68521
11 changed files with 96 additions and 42 deletions
@@ -3,5 +3,13 @@ package eventDemo.business.event
import eventDemo.business.entity.GameId
import eventDemo.business.event.event.GameEvent
import eventDemo.libs.event.EventBus
import java.util.UUID
interface GameEventBus : EventBus<GameEvent, GameId>
abstract class GameEventBus :
EventBus<GameEvent, GameId>,
Comparable<GameEventBus> {
private val instanceId: UUID = UUID.randomUUID()
override fun compareTo(other: GameEventBus): Int =
compareValues(instanceId, other.instanceId)
}