Class ForwardingRoute

java.lang.Object
org.jgroups.protocols.relay.ForwardingRoute
All Implemented Interfaces:
Comparable<ForwardingRoute>

public class ForwardingRoute extends Object implements Comparable<ForwardingRoute>
Route which forwards all messages to a given site via a given route.

Example: if site HF is reachable via NET1, and 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.

Note that 'to' can be a regular expression and matches(String) can be used to match a given site against it.

Since:
5.2.15