Record Class WSConnectionSettingsResource
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.gan.WSConnectionSettingsResource
- Record Components:
host- The remote host to connect toport- The remote port to connect touseSSL- Whether to use SSL for the connectionpingRateMillis- The rate at which to send ping messagespingTimeoutMillis- The timeout for a ping messagepingMaxMissed- The maximum number of missed pings before the connection is considered lostwsTimeoutMillis- The timeout for the websocket connectionhttpConnectTimeoutMillis- The timeout for the HTTP connectionhttpReadTimeoutMillis- The timeout for reading from the HTTP connectionsendThreads- The number of threads to use for sending messagesreceiveThreads- The number of threads to use for receiving messages
public record WSConnectionSettingsResource(String host, Integer port, Boolean useSSL, Integer pingRateMillis, Integer pingTimeoutMillis, Integer pingMaxMissed, Integer wsTimeoutMillis, Integer httpConnectTimeoutMillis, Integer httpReadTimeoutMillis, Integer sendThreads, Integer receiveThreads)
extends Record
A resource that holds settings for an outgoing Gateway Network connection. Notably, this is a named resource which
did not have a name in the previous PersistentRecord implementation, so the resource name is constructed as
host_port.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceTypeMeta<WSConnectionSettingsResource>static final Stringstatic final ResourceType -
Constructor Summary
ConstructorsConstructorDescriptionWSConnectionSettingsResource(String host, Integer port, Boolean useSSL, Integer pingRateMillis, Integer pingTimeoutMillis, Integer pingMaxMissed, Integer wsTimeoutMillis, Integer httpConnectTimeoutMillis, Integer httpReadTimeoutMillis, Integer sendThreads, Integer receiveThreads) Creates an instance of aWSConnectionSettingsResourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getAllProperties(int index) Returns a Properties object that can be used to completely recreate a WSConnectionSettingsResource from properties.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.Returns the value of thehttpConnectTimeoutMillisrecord component.Returns the value of thehttpReadTimeoutMillisrecord component.Returns the value of thepingMaxMissedrecord component.Returns the value of thepingRateMillisrecord component.Returns the value of thepingTimeoutMillisrecord component.port()Returns the value of theportrecord component.Returns the value of thereceiveThreadsrecord component.Returns the value of thesendThreadsrecord component.final StringtoString()Returns a string representation of this record class.useSSL()Returns the value of theuseSSLrecord component.Returns the value of thewsTimeoutMillisrecord component.
-
Field Details
-
OUTGOING_CONNECTIONS
- See Also:
-
RESOURCE_TYPE
-
META
-
-
Constructor Details
-
WSConnectionSettingsResource
public WSConnectionSettingsResource(String host, Integer port, Boolean useSSL, Integer pingRateMillis, Integer pingTimeoutMillis, Integer pingMaxMissed, Integer wsTimeoutMillis, Integer httpConnectTimeoutMillis, Integer httpReadTimeoutMillis, Integer sendThreads, Integer receiveThreads) Creates an instance of aWSConnectionSettingsResourcerecord class.- Parameters:
host- the value for thehostrecord componentport- the value for theportrecord componentuseSSL- the value for theuseSSLrecord componentpingRateMillis- the value for thepingRateMillisrecord componentpingTimeoutMillis- the value for thepingTimeoutMillisrecord componentpingMaxMissed- the value for thepingMaxMissedrecord componentwsTimeoutMillis- the value for thewsTimeoutMillisrecord componenthttpConnectTimeoutMillis- the value for thehttpConnectTimeoutMillisrecord componenthttpReadTimeoutMillis- the value for thehttpReadTimeoutMillisrecord componentsendThreads- the value for thesendThreadsrecord componentreceiveThreads- the value for thereceiveThreadsrecord component
-
-
Method Details
-
getAllProperties
Returns a Properties object that can be used to completely recreate a WSConnectionSettingsResource from properties. Use the index to set which gan connection this represents in a file with many gan connections; e.g if the index is 0, then a property might be 'gateway.network.0.Host=localhost' -
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. All components in this record class are compared withObjects::equals(Object,Object). -
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
useSSL
Returns the value of theuseSSLrecord component.- Returns:
- the value of the
useSSLrecord component
-
pingRateMillis
Returns the value of thepingRateMillisrecord component.- Returns:
- the value of the
pingRateMillisrecord component
-
pingTimeoutMillis
Returns the value of thepingTimeoutMillisrecord component.- Returns:
- the value of the
pingTimeoutMillisrecord component
-
pingMaxMissed
Returns the value of thepingMaxMissedrecord component.- Returns:
- the value of the
pingMaxMissedrecord component
-
wsTimeoutMillis
Returns the value of thewsTimeoutMillisrecord component.- Returns:
- the value of the
wsTimeoutMillisrecord component
-
httpConnectTimeoutMillis
Returns the value of thehttpConnectTimeoutMillisrecord component.- Returns:
- the value of the
httpConnectTimeoutMillisrecord component
-
httpReadTimeoutMillis
Returns the value of thehttpReadTimeoutMillisrecord component.- Returns:
- the value of the
httpReadTimeoutMillisrecord component
-
sendThreads
Returns the value of thesendThreadsrecord component.- Returns:
- the value of the
sendThreadsrecord component
-
receiveThreads
Returns the value of thereceiveThreadsrecord component.- Returns:
- the value of the
receiveThreadsrecord component
-