Sandy
04/09/2020, 3:23 PMShawn
04/09/2020, 3:32 PMEV is declared as a generic parameter that is required to be a type that is or inherits from TBase and is parameterized with EV and a covariantly-specified (i.e. “this type or a subtype”) TFieldEnumShawn
04/09/2020, 3:32 PMShawn
04/09/2020, 3:32 PMstreetsofboston
04/09/2020, 3:33 PMBaseEventConsumer and your own event-type that implements TBase and the first type-parameter of BaseEventConsumer needs to be such a event-type:
class MyFieldIdEnum : TFieldIdEnum { ...}
class MyEvent : TBase<MyEvent, MyFieldIdEnum> { ... }
class MyConsumer: BaseEventConsumer<MyEvent, String>("topic") { .... }streetsofboston
04/09/2020, 3:34 PMEV: TBase<EV, ...> is similar to that of C: Comparable<C>