| 5 | import org.w3c.dom.Element; |
| 6 | |
| 7 | public class MQConfig implements Config.ICustomize { |
| 8 | private int rpcTimeout = 20_000; |
| 9 | |
| 10 | public int getRpcTimeout() { |
| 11 | return rpcTimeout; |
| 12 | } |
| 13 | |
| 14 | public void setRpcTimeout(int value) { |
| 15 | rpcTimeout = value; |
| 16 | } |
| 17 | |
| 18 | @Override |
| 19 | public @NotNull String getName() { |
| 20 | return "MQConfig"; |
| 21 | } |
| 22 | |
| 23 | @Override |
| 24 | public void parse(Element self) { |
| 25 | var attr = self.getAttribute("RpcTimeout"); |
| 26 | if (!attr.isBlank()) |
| 27 | rpcTimeout = Integer.parseInt(attr); |
| 28 | } |
| 29 | } |
nothing calls this directly
no outgoing calls
no test coverage detected