Record Class QueryBusInterceptorChain<R, Q extends Query<R>>
java.lang.Object
java.lang.Record
app.dodb.smd.api.query.bus.QueryBusInterceptorChain<R,Q>
-
Constructor Summary
ConstructorsConstructorDescriptionQueryBusInterceptorChain(Function<QueryMessage<R, Q>, R> delegate, Deque<QueryBusInterceptor> interceptors) Creates an instance of aQueryBusInterceptorChainrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <R, Q extends Query<R>>
QueryBusInterceptorChain<R, Q> create(Function<QueryMessage<R, Q>, R> delegate, List<QueryBusInterceptor> interceptors) Function<QueryMessage<R, Q>, R> 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.proceed(QueryMessage<R, Q> queryMessage) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryBusInterceptorChain
public QueryBusInterceptorChain(Function<QueryMessage<R, Q>, R> delegate, Deque<QueryBusInterceptor> interceptors) Creates an instance of aQueryBusInterceptorChainrecord class.- Parameters:
delegate- the value for thedelegaterecord componentinterceptors- the value for theinterceptorsrecord component
-
-
Method Details
-
create
public static <R, Q extends Query<R>> QueryBusInterceptorChain<R,Q> create(Function<QueryMessage<R, Q>, R> delegate, List<QueryBusInterceptor> 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
-