toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
multimedia-service
/
piperkt.services.multimedia.infrastructure.events.listeners
/
ServerEventsKafkaListener
Server
Events
Kafka
Listener
@
KafkaListener
class
ServerEventsKafkaListener
(
serverEventsListener
:
ServerEventsListener
)
Listens to server events from Kafka.
Parameters
server
Events
Listener
The listener to delegate the events to.
Members
Constructors
Server
Events
Kafka
Listener
Link copied to clipboard
constructor
(
serverEventsListener
:
ServerEventsListener
)
Functions
on
Server
Created
Link copied to clipboard
@
Topic
(
value
=
[
"server-created"
]
)
fun
onServerCreated
(
event
:
ServerCreatedEvent
)
on
Server
Deleted
Link copied to clipboard
@
Topic
(
value
=
[
"server-deleted"
]
)
fun
onServerDeleted
(
event
:
ServerDeletedEvent
)
on
User
Joined
Server
Link copied to clipboard
@
Topic
(
value
=
[
"server-user-added"
]
)
fun
onUserJoinedServer
(
event
:
ServerUserAddedEvent
)
on
User
Kicked
From
Server
Link copied to clipboard
@
Topic
(
value
=
[
"server-user-kicked"
]
)
fun
onUserKickedFromServer
(
event
:
ServerUserKickedEvent
)
on
User
Left
Server
Link copied to clipboard
@
Topic
(
value
=
[
"server-user-removed"
]
)
fun
onUserLeftServer
(
event
:
ServerUserRemovedEvent
)