Interface WeixinRuntimeListener
public interface WeixinRuntimeListener
Receives technical runtime observations without imposing a host product lifecycle.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WeixinRuntimeListenernoOp()default voidonCredentialRejected(String accountId, String reason) default voidonDeliveryFailed(String accountId, String reason) A reply the provider refused.default voidonDispatchFailed(String accountId, String reason) An accepted inbound message whose dispatch kept failing, so it was abandoned instead of retried forever.default voidonLeaseAcquired(String accountId, WeixinLease lease) default voidonRecovered(String accountId) default voiddefault voiddefault voidonTransientFailure(String accountId, String reason)
-
Method Details
-
onLeaseAcquired
-
onRunning
-
onStopped
-
onCredentialRejected
-
onTransientFailure
-
onDeliveryFailed
A reply the provider refused. The Agent has already run, so a delivery failure never replays the inbound message; the host reports it and its own delivery queue decides what happens next. -
onDispatchFailed
An accepted inbound message whose dispatch kept failing, so it was abandoned instead of retried forever. Distinct fromonDeliveryFailed(java.lang.String, java.lang.String): the Agent may never have finished. -
onRecovered
-
noOp
-