-
Factory used by ChannelFactory.
DingTalkChannel.fromProperties(String channelId,
io.agentscope.harness.agent.gateway.channel.ChannelConfig routing,
Map<String,Object> rawProperties,
io.agentscope.extensions.channel.common.InboundEventDeduplicator idempotency)
Factory variant that lets the application supply the InboundEventDeduplicator used
to drop platform redeliveries — for example a shared-storage implementation so duplicates
are recognized across instances.
DingTalkChannel.fromProperties(String channelId,
io.agentscope.harness.agent.gateway.channel.ChannelConfig routing,
Map<String,Object> rawProperties,
io.agentscope.extensions.channel.common.InboundEventDeduplicator idempotency,
io.agentscope.extensions.channel.common.AccessTokenStore tokenStore)
Factory variant that additionally lets the application supply the AccessTokenStore
caching the outbound access token — for example a shared-storage implementation so one
instance's refresh or invalidation serves the whole deployment.
DingTalkChannelRegistry.get(String channelId)
Returns the channel registered for channelId, or null if none.
void
Registers a channel under its channel id.
void
Removes the registration for channelId only when it currently maps to
expected, so a stale instance shutting down cannot detach a successor's registration.