GUACAMOLE-317: Add convenience getter for failover-only attribute at Connection level.
This commit is contained in:
1 parent
31519061dc
commit
cdf823cc9f
1 file changed
+13
+13
@@ -451,4 +451,17 @@ public class ModeledConnection extends ModeledChildDirectoryObject<ConnectionMod
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this connection should be reserved for failover.
|
||||||
|
* Failover-only connections within a balancing group are only used when
|
||||||
|
* all non-failover connections are unavailable.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* true if this connection should be reserved for failover, false
|
||||||
|
* otherwise.
|
||||||
|
*/
|
||||||
|
public boolean isFailoverOnly() {
|
||||||
|
return getModel().isFailoverOnly();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user