Record Class CommandBusInterceptorChain<R, C extends Command<R>>
java.lang.Object
java.lang.Record
app.dodb.smd.api.command.bus.CommandBusInterceptorChain<R,C>
-
Constructor Summary
ConstructorsConstructorDescriptionCommandBusInterceptorChain(Function<CommandMessage<R, C>, R> delegate, Deque<CommandBusInterceptor> interceptors) Creates an instance of aCommandBusInterceptorChainrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <R, C extends Command<R>>
CommandBusInterceptorChain<R, C> create(Function<CommandMessage<R, C>, R> delegate, List<CommandBusInterceptor> interceptors) Function<CommandMessage<R, C>, 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(CommandMessage<R, C> commandMessage) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommandBusInterceptorChain
public CommandBusInterceptorChain(Function<CommandMessage<R, C>, R> delegate, Deque<CommandBusInterceptor> interceptors) Creates an instance of aCommandBusInterceptorChainrecord class.- Parameters:
delegate- the value for thedelegaterecord componentinterceptors- the value for theinterceptorsrecord component
-
-
Method Details
-
create
public static <R, C extends Command<R>> CommandBusInterceptorChain<R,C> create(Function<CommandMessage<R, C>, R> delegate, List<CommandBusInterceptor> 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
-