Interface WebServiceMessageSender.DestinationPolicy<D extends WebServiceMessageSender.DestinationDescriptor>

Type Parameters:
D - concrete descriptor type supplied by the sender implementation
Enclosing interface:
WebServiceMessageSender
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface WebServiceMessageSender.DestinationPolicy<D extends WebServiceMessageSender.DestinationDescriptor>
Specifies the policy to apply for a given descriptor. Implementation may choose to apply the default checks that would otherwise be applied if such policy was not configured.
Since:
3.1.9
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(D descriptor, Predicate<D> defaultChecks)
    Whether the given destination is acceptable.
  • Method Details

    • accept

      boolean accept(D descriptor, Predicate<D> defaultChecks)
      Whether the given destination is acceptable.
      Parameters:
      descriptor - transport-specific view of the destination
      defaultChecks - predicate that runs the sender's default checks for this descriptor. Call defaultChecks.test(descriptor) when those checks should apply
      Returns:
      whether the destination is acceptable