Projection was now built on listener events
Create ProjectionBus and use it with listeners add EventStream::getByVersion
This commit is contained in:
@@ -2,13 +2,5 @@ package eventDemo.business.event
|
||||
|
||||
import eventDemo.business.event.event.GameEvent
|
||||
import eventDemo.libs.bus.Bus
|
||||
import java.util.UUID
|
||||
|
||||
abstract class GameEventBus :
|
||||
Bus<GameEvent>,
|
||||
Comparable<GameEventBus> {
|
||||
private val instanceId: UUID = UUID.randomUUID()
|
||||
|
||||
override fun compareTo(other: GameEventBus): Int =
|
||||
compareValues(instanceId, other.instanceId)
|
||||
}
|
||||
interface GameEventBus : Bus<GameEvent>
|
||||
|
||||
Reference in New Issue
Block a user