Interface WeixinRuntimeListener


public interface WeixinRuntimeListener
Receives technical runtime observations without imposing a host product lifecycle.
  • Method Details

    • onLeaseAcquired

      default void onLeaseAcquired(String accountId, WeixinLease lease)
    • onRunning

      default void onRunning(String accountId)
    • onStopped

      default void onStopped(String accountId)
    • onCredentialRejected

      default void onCredentialRejected(String accountId, String reason)
    • onTransientFailure

      default void onTransientFailure(String accountId, String reason)
    • onDeliveryFailed

      default void onDeliveryFailed(String accountId, String reason)
      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

      default void onDispatchFailed(String accountId, String reason)
      An accepted inbound message whose dispatch kept failing, so it was abandoned instead of retried forever. Distinct from onDeliveryFailed(java.lang.String, java.lang.String): the Agent may never have finished.
    • onRecovered

      default void onRecovered(String accountId)
    • noOp

      static WeixinRuntimeListener noOp()