Record Class RelayConfig.ForwardConfig
java.lang.Object
java.lang.Record
org.jgroups.protocols.relay.config.RelayConfig.ForwardConfig
- Record Components:
to- The destinationgateway- The gateway to use for the above destination
- Enclosing class:
RelayConfig
Forwards to site 'to' via route 'gateway'. Example: if site HF is reachable via NET1, if NET2 is not directly
connected to HF, it needs to have a ForwardConfig with to="HF" and gateway="NET1". This means that a message to
site HF will be forwarded to NET1, which then forwards it to HF.
- Since:
- 3.2
- Author:
- Bela Ban
-
Constructor Summary
ConstructorsConstructorDescriptionForwardConfig(String to, String gateway) Creates an instance of aForwardConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gateway()Returns the value of thegatewayrecord component.final inthashCode()Returns a hash code value for this object.to()Returns the value of thetorecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ForwardConfig
-
-
Method Details
-
toString
-
hashCode
-
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). -
to
-
gateway
-