Uses of Record Class
io.agentscope.extensions.channel.weixin.WeixinLease
-
Uses of WeixinLease in io.agentscope.extensions.channel.weixin
Methods in io.agentscope.extensions.channel.weixin that return types with arguments of type WeixinLeaseModifier and TypeMethodDescriptionWeixinStateStore.acquireLease(String accountId, String holderId, long leaseMs) A released or expired lease must never reuse its generation, even for the same holder.Methods in io.agentscope.extensions.channel.weixin with parameters of type WeixinLeaseModifier and TypeMethodDescriptionbooleanWeixinStateStore.abandonMessage(String accountId, WeixinLease lease, WeixinInboxClaim claim) Drops a claimed message the consumer will not retry again — the dispatch kept failing, or the provider kept refusing the reply.booleanWeixinStateStore.acceptBatch(String accountId, WeixinLease lease, String nextCursor, List<WeixinInboxMessage> messages) Saves the whole batch and its cursor in one transaction, deduplicating message IDs.WeixinStateStore.claimMessages(String accountId, WeixinLease lease, int limit, long claimMs) Claims in reception order.booleanWeixinStateStore.completeMessage(String accountId, WeixinLease lease, WeixinInboxClaim claim) Only the exact, unexpired claim may finish.booleanWeixinStateStore.failMessage(String accountId, WeixinLease lease, WeixinInboxClaim claim) booleanWeixinStateStore.isLeaseCurrent(String accountId, WeixinLease lease) default voidWeixinRuntimeListener.onLeaseAcquired(String accountId, WeixinLease lease) voidWeixinStateStore.releaseLease(String accountId, WeixinLease lease) booleanWeixinStateStore.renewLease(String accountId, WeixinLease lease, long leaseMs) booleanWeixinStateStore.saveContextToken(String accountId, WeixinLease lease, String peerId, String token)