Interface PushResult
- All Known Implementing Classes:
PushResultImpl
public interface PushResult
The aggregate result of a send — the audit record and the
ServerAdmin UI's data source in one object.A result carries the routing plan that was executed and the per-outcome tally across every subscription the filter matched. Because the subsystem records an outcome for every match — delivered, excluded, unauthorized, unresolved, unreachable, stale — the tallies sum to the matched count with nothing silent, which is what makes the result certifiable as "this send touched these regions and no others".
- Author:
- IIZI
Method Summary
Modifier and TypeMethodDescriptionintGets the count of subscriptions delivered by any tier — the sum of theDeliveryOutcome.DELIVERED_IN_SESSIONandDeliveryOutcome.DELIVEREDbuckets.Gets the count of subscriptions perDeliveryOutcome.Gets the routing plan that was executed.booleanReports whether every matched, in-scope, deliverable subscription was delivered — i.e.
Method Details
getRoutingPlan
IRoutingPlan getRoutingPlan()Gets the routing plan that was executed.- Returns:
- The routing plan; never
null.
getOutcomeCounts
Map<DeliveryOutcome, Integer> getOutcomeCounts()Gets the count of subscriptions perDeliveryOutcome. The values sum toIRoutingPlan.getMatchedCount(); every matched subscription is in exactly one bucket.- Returns:
- An unmodifiable map from outcome to count; never
null.
getDeliveredCount
int getDeliveredCount()Gets the count of subscriptions delivered by any tier — the sum of theDeliveryOutcome.DELIVERED_IN_SESSIONandDeliveryOutcome.DELIVEREDbuckets. A convenience overgetOutcomeCounts().- Returns:
- The delivered count.
isFullyDelivered
boolean isFullyDelivered()Reports whether every matched, in-scope, deliverable subscription was delivered — i.e. no bucket other than the two delivered outcomes and the deliberate exclusions is non-empty. A send with spooled or unreachable targets is not fully delivered, and the operator should expect a later replay.- Returns:
trueif nothing was left undelivered for a recoverable reason.