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
-
Method Details
-
accept
Whether the given destination is acceptable.- Parameters:
descriptor- transport-specific view of the destinationdefaultChecks- predicate that runs the sender's default checks for this descriptor. CalldefaultChecks.test(descriptor)when those checks should apply- Returns:
- whether the destination is acceptable
-