Package com.lightbend.cinnamon.akka
Class CinnamonEvents
- java.lang.Object
-
- com.lightbend.cinnamon.akka.CinnamonEventsFactory
-
- com.lightbend.cinnamon.akka.CinnamonEvents
-
- All Implemented Interfaces:
akka.actor.Extension
public abstract class CinnamonEvents extends CinnamonEventsFactory implements akka.actor.Extension
Akka (classic) Extension that provides a Cinnamon event API for custom events.
-
-
Constructor Summary
Constructors Constructor Description CinnamonEvents()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CinnamonEvents
apply(akka.actor.ActorContext context)
static CinnamonEvents
createExtension(akka.actor.ExtendedActorSystem system)
static boolean
equals(java.lang.Object other)
abstract CinnamonEvents
eventsFor(akka.actor.ActorRef actorRef)
Get CinnamonEvents API scoped to a particular actor.abstract CinnamonEvents
eventsFor(Identity identity)
Get CinnamonEvents API scoped to a particular identity.abstract CinnamonEvents
eventsForApplication()
Get CinnamonEvents API scoped to the application.abstract CinnamonEvents
eventsForSystem()
Get CinnamonEvents API scoped to the actor system.static CinnamonEvents
get(akka.actor.ActorContext context)
static CinnamonEvents
get(akka.actor.ActorSystem system)
static int
hashCode()
static akka.actor.ExtensionId<? extends akka.actor.Extension>
lookup()
-
Methods inherited from class com.lightbend.cinnamon.akka.CinnamonEventsFactory
createErrorEvent, createErrorEvent, createInfoEvent, createInfoEvent, createWarningEvent, createWarningEvent
-
-
-
-
Method Detail
-
createExtension
public static CinnamonEvents createExtension(akka.actor.ExtendedActorSystem system)
-
apply
public static CinnamonEvents apply(akka.actor.ActorContext context)
-
lookup
public static akka.actor.ExtensionId<? extends akka.actor.Extension> lookup()
-
get
public static CinnamonEvents get(akka.actor.ActorSystem system)
-
get
public static CinnamonEvents get(akka.actor.ActorContext context)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
eventsFor
public abstract CinnamonEvents eventsFor(akka.actor.ActorRef actorRef)
Get CinnamonEvents API scoped to a particular actor.- Parameters:
actorRef
- the actor to create actor-level custom events- Returns:
- CinnamonEvents scoped to the given actor
-
eventsForSystem
public abstract CinnamonEvents eventsForSystem()
Get CinnamonEvents API scoped to the actor system.- Returns:
- CinnamonEvents scoped to the actor system
-
eventsForApplication
public abstract CinnamonEvents eventsForApplication()
Get CinnamonEvents API scoped to the application.- Returns:
- CinnamonEvents scoped to the application
-
eventsFor
public abstract CinnamonEvents eventsFor(Identity identity)
Get CinnamonEvents API scoped to a particular identity.- Parameters:
identity
- the identity to create custom events for- Returns:
- CinnamonEvents scoped to the given identity
-
-