core / pragma.services / DistributedService /

DistributedService #

abstract class DistributedService(pragmaNode: PragmaNode, instanceId: UUID) : Service

A service that handles RPC requests across one or more nodes.

Constructors #

DistributedService

fun DistributedService(pragmaNode: PragmaNode, instanceId: UUID)

Functions #

NameSummary

onSessionTerminated

open suspend fun onSessionTerminated(notification: PlayerSessionRpc.SessionTerminatedForServiceV1Notification)

Java does not support annotation inheritance, so if the function is "overridden", the overriding classes need to redeclare the @PragmaNotification annotation. See https://stackoverflow.com/questions/1624084/why-is-it-not-possible-to-extend-annotations-in-java