Record Class EventBusInterceptorChain<E extends Event>
java.lang.Object
java.lang.Record
app.dodb.smd.api.event.bus.EventBusInterceptorChain<E>
public record EventBusInterceptorChain<E extends Event>(Consumer<EventMessage<E extends Event>> delegate, Deque<EventBusInterceptor> interceptors)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEventBusInterceptorChain(Consumer<EventMessage<E>> delegate, Deque<EventBusInterceptor> interceptors) Creates an instance of aEventBusInterceptorChainrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Event>
EventBusInterceptorChain<E> create(Consumer<EventMessage<E>> delegate, List<EventBusInterceptor> interceptors) delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterceptorsrecord component.voidproceed(EventMessage<E> eventMessage) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventBusInterceptorChain
public EventBusInterceptorChain(Consumer<EventMessage<E>> delegate, Deque<EventBusInterceptor> interceptors) Creates an instance of aEventBusInterceptorChainrecord class.- Parameters:
delegate- the value for thedelegaterecord componentinterceptors- the value for theinterceptorsrecord component
-
-
Method Details
-
create
public static <E extends Event> EventBusInterceptorChain<E> create(Consumer<EventMessage<E>> delegate, List<EventBusInterceptor> interceptors) -
proceed
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-
interceptors
Returns the value of theinterceptorsrecord component.- Returns:
- the value of the
interceptorsrecord component
-