Class EventAdapters
- java.lang.Object
-
- org.apache.pekko.persistence.journal.EventAdapters
-
- Direct Known Subclasses:
IdentityEventAdapters$
public class EventAdapters extends java.lang.Object
EventAdapters
serves as a per-journal collection of bound event adapters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventAdapters.CombinedReadEventAdapter$
-
Constructor Summary
Constructors Constructor Description EventAdapters(java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,EventAdapter> map, scala.collection.immutable.Seq<scala.Tuple2<java.lang.Class<?>,EventAdapter>> bindings, LoggingAdapter log)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventAdapters
apply(ExtendedActorSystem system, com.typesafe.config.Config config)
EventAdapter
get(java.lang.Class<?> clazz)
Finds the "most specific" matching adapter for the given class (i.e.static scala.util.Try<EventAdapter>
instantiateAdapter(java.lang.String adapterFQN, ExtendedActorSystem system)
java.lang.String
toString()
-
-
-
Constructor Detail
-
EventAdapters
public EventAdapters(java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,EventAdapter> map, scala.collection.immutable.Seq<scala.Tuple2<java.lang.Class<?>,EventAdapter>> bindings, LoggingAdapter log)
-
-
Method Detail
-
apply
public static EventAdapters apply(ExtendedActorSystem system, com.typesafe.config.Config config)
-
instantiateAdapter
public static scala.util.Try<EventAdapter> instantiateAdapter(java.lang.String adapterFQN, ExtendedActorSystem system)
-
get
public EventAdapter get(java.lang.Class<?> clazz)
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
IdentityEventAdapter
if no adapter was defined for the given class.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-