Record Class LocalDispatchFilter

java.lang.Object
java.lang.Record
io.fluxzero.sdk.tracking.handling.LocalDispatchFilter
Record Components:
ordinary - structural filter for ordinary dispatch, including simulated tracking
localOnly - message filter when external publication is forbidden

public record LocalDispatchFilter(@NonNull io.fluxzero.common.handling.HandlerFilter ordinary, @NonNull io.fluxzero.common.handling.MessageFilter<DeserializingMessage> localOnly) extends Record
Separates simulated tracking from actual local eligibility without creating a second handler or target instance. Synchronous fixtures use this filter; ordinary explicit registry filters keep their local-registration contract.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.fluxzero.common.handling.HandlerFilter
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalDispatchFilter(@NonNull io.fluxzero.common.handling.HandlerFilter ordinary, @NonNull io.fluxzero.common.handling.MessageFilter<DeserializingMessage> localOnly)
    Creates an instance of a LocalDispatchFilter record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    default io.fluxzero.common.handling.HandlerFilter
    and(@NonNull io.fluxzero.common.handling.HandlerFilter arg0)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NonNull io.fluxzero.common.handling.MessageFilter<DeserializingMessage>
    Returns the value of the localOnly record component.
    default io.fluxzero.common.handling.HandlerFilter
     
    default io.fluxzero.common.handling.HandlerFilter
    or(@NonNull io.fluxzero.common.handling.HandlerFilter arg0)
     
    @NonNull io.fluxzero.common.handling.HandlerFilter
    Returns the value of the ordinary record component.
    boolean
    test(Class<?> ownerType, Executable executable)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ALWAYS_HANDLE

      static final io.fluxzero.common.handling.HandlerFilter ALWAYS_HANDLE
  • Constructor Details

    • LocalDispatchFilter

      public LocalDispatchFilter(@NonNull @NonNull io.fluxzero.common.handling.HandlerFilter ordinary, @NonNull @NonNull io.fluxzero.common.handling.MessageFilter<DeserializingMessage> localOnly)
      Creates an instance of a LocalDispatchFilter record class.
      Parameters:
      ordinary - the value for the ordinary record component
      localOnly - the value for the localOnly record component
  • Method Details

    • test

      public boolean test(Class<?> ownerType, Executable executable)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ordinary

      @NonNull public @NonNull io.fluxzero.common.handling.HandlerFilter ordinary()
      Returns the value of the ordinary record component.
      Returns:
      the value of the ordinary record component
    • localOnly

      @NonNull public @NonNull io.fluxzero.common.handling.MessageFilter<DeserializingMessage> localOnly()
      Returns the value of the localOnly record component.
      Returns:
      the value of the localOnly record component
    • and

      default io.fluxzero.common.handling.HandlerFilter and(@NonNull @NonNull io.fluxzero.common.handling.HandlerFilter arg0)
    • negate

      default io.fluxzero.common.handling.HandlerFilter negate()
    • or

      default io.fluxzero.common.handling.HandlerFilter or(@NonNull @NonNull io.fluxzero.common.handling.HandlerFilter arg0)