Class EventAdapters
java.lang.Object
org.apache.pekko.persistence.journal.EventAdapters
- Direct Known Subclasses:
IdentityEventAdapters$
EventAdapters serves as a per-journal collection of bound event adapters.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEventAdapters(ConcurrentHashMap<Class<?>, EventAdapter> map, scala.collection.immutable.Seq<scala.Tuple2<Class<?>, EventAdapter>> bindings, LoggingAdapter log) -
Method Summary
Modifier and TypeMethodDescriptionstatic EventAdaptersapply(ExtendedActorSystem system, com.typesafe.config.Config config) Finds the "most specific" matching adapter for the given class (i.e.static scala.util.Try<EventAdapter>instantiateAdapter(String adapterFQN, ExtendedActorSystem system) toString()
-
Constructor Details
-
EventAdapters
public EventAdapters(ConcurrentHashMap<Class<?>, EventAdapter> map, scala.collection.immutable.Seq<scala.Tuple2<Class<?>, EventAdapter>> bindings, LoggingAdapter log)
-
-
Method Details
-
apply
-
instantiateAdapter
public static scala.util.Try<EventAdapter> instantiateAdapter(String adapterFQN, ExtendedActorSystem system) -
get
Finds the "most specific" matching adapter for the given class (i.e. it may return an adapter that can work on a interface implemented by the given class if no direct match is found).Falls back to
IdentityEventAdapterif no adapter was defined for the given class. -
toString
-