Record Class WeixinChannelProperties
java.lang.Object
java.lang.Record
io.agentscope.extensions.channel.weixin.WeixinChannelProperties
public record WeixinChannelProperties(String accountId, String baseUrl, String ilinkUserId, String channelVersion, String botAgent, int longPollTimeoutMs, int requestTimeoutMs, int maxBackoffMs, int leaseMs, int dispatchTimeoutMs)
extends Record
Provider configuration for one Personal Weixin Channel instance.
requestTimeoutMs bounds the control calls, while longPollTimeoutMs bounds the
getupdates long poll — the provider holds that request open, so the client derives a
longer deadline for it (see WeixinOutboundClient.timeoutFor).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWeixinChannelProperties(String accountId, String baseUrl, String ilinkUserId, String channelVersion, String botAgent, int longPollTimeoutMs, int requestTimeoutMs, int maxBackoffMs, int leaseMs, int dispatchTimeoutMs) Creates an instance of aWeixinChannelPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountIdrecord component.baseUrl()Returns the value of thebaseUrlrecord component.botAgent()Returns the value of thebotAgentrecord component.Returns the value of thechannelVersionrecord component.intReturns the value of thedispatchTimeoutMsrecord component.final booleanIndicates whether some other object is "equal to" this one.static WeixinChannelPropertiesfinal inthashCode()Returns a hash code value for this object.Returns the value of theilinkUserIdrecord component.intleaseMs()Returns the value of theleaseMsrecord component.intReturns the value of thelongPollTimeoutMsrecord component.intReturns the value of themaxBackoffMsrecord component.intReturns the value of therequestTimeoutMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_BASE_URL
- See Also:
-
-
Constructor Details
-
WeixinChannelProperties
public WeixinChannelProperties(String accountId, String baseUrl, String ilinkUserId, String channelVersion, String botAgent, int longPollTimeoutMs, int requestTimeoutMs, int maxBackoffMs, int leaseMs, int dispatchTimeoutMs) Creates an instance of aWeixinChannelPropertiesrecord class.- Parameters:
accountId- the value for theaccountIdrecord componentbaseUrl- the value for thebaseUrlrecord componentilinkUserId- the value for theilinkUserIdrecord componentchannelVersion- the value for thechannelVersionrecord componentbotAgent- the value for thebotAgentrecord componentlongPollTimeoutMs- the value for thelongPollTimeoutMsrecord componentrequestTimeoutMs- the value for therequestTimeoutMsrecord componentmaxBackoffMs- the value for themaxBackoffMsrecord componentleaseMs- the value for theleaseMsrecord componentdispatchTimeoutMs- the value for thedispatchTimeoutMsrecord component
-
-
Method Details
-
from
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
accountId
Returns the value of theaccountIdrecord component.- Returns:
- the value of the
accountIdrecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
ilinkUserId
Returns the value of theilinkUserIdrecord component.- Returns:
- the value of the
ilinkUserIdrecord component
-
channelVersion
Returns the value of thechannelVersionrecord component.- Returns:
- the value of the
channelVersionrecord component
-
botAgent
Returns the value of thebotAgentrecord component.- Returns:
- the value of the
botAgentrecord component
-
longPollTimeoutMs
public int longPollTimeoutMs()Returns the value of thelongPollTimeoutMsrecord component.- Returns:
- the value of the
longPollTimeoutMsrecord component
-
requestTimeoutMs
public int requestTimeoutMs()Returns the value of therequestTimeoutMsrecord component.- Returns:
- the value of the
requestTimeoutMsrecord component
-
maxBackoffMs
public int maxBackoffMs()Returns the value of themaxBackoffMsrecord component.- Returns:
- the value of the
maxBackoffMsrecord component
-
leaseMs
public int leaseMs()Returns the value of theleaseMsrecord component.- Returns:
- the value of the
leaseMsrecord component
-
dispatchTimeoutMs
public int dispatchTimeoutMs()Returns the value of thedispatchTimeoutMsrecord component.- Returns:
- the value of the
dispatchTimeoutMsrecord component
-