Record Class EventInterceptorChain<E extends Event>
java.lang.Object
java.lang.Record
app.dodb.smd.api.event.EventInterceptorChain<E>
public record EventInterceptorChain<E extends Event>(Consumer<EventMessage<E extends Event>> delegate, Deque<EventInterceptor> interceptors)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEventInterceptorChain(Consumer<EventMessage<E>> delegate, Deque<EventInterceptor> interceptors) Creates an instance of aEventInterceptorChainrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Event>
EventInterceptorChain<E> create(Consumer<EventMessage<E>> delegate, List<? extends EventInterceptor> 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
-
EventInterceptorChain
public EventInterceptorChain(Consumer<EventMessage<E>> delegate, Deque<EventInterceptor> interceptors) Creates an instance of aEventInterceptorChainrecord class.- Parameters:
delegate- the value for thedelegaterecord componentinterceptors- the value for theinterceptorsrecord component
-
-
Method Details
-
create
public static <E extends Event> EventInterceptorChain<E> create(Consumer<EventMessage<E>> delegate, List<? extends EventInterceptor> 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
-