GitLab update scheduled for Friday, January 21th between 08:15 and 08:45 CET. If unpleasant, please contact René or Martin.

mqtt.mustache 862 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
aspect MQTT {
  private MqttUpdater {{rootNodeName}}.{{mqttUpdaterField}} = new MqttUpdater();
  public void {{rootNodeName}}.{{mqttSetHostMethod}}(String host) throws java.io.IOException {
    {{mqttUpdaterField}}.setHost(host);
  }
  public void {{rootNodeName}}.{{mqttSetHostMethod}}(String host, int port) throws java.io.IOException {
    {{mqttUpdaterField}}.setHost(host, port);
  }

  public boolean {{rootNodeName}}.{{mqttWaitUntilReadyMethod}}(long time, java.util.concurrent.TimeUnit unit) {
    return {{mqttUpdaterField}}.waitUntilReady(time, unit);
  }

  public void {{rootNodeName}}.{{mqttCloseMethod}}() {
    {{mqttUpdaterField}}.close();
  }

  inh MqttUpdater ASTNode.{{mqttUpdaterAttribute}}();
René Schöne's avatar
René Schöne committed
19
  {{#getRootTypeComponents}}
René Schöne's avatar
René Schöne committed
20
  eq {{rootNodeName}}.get{{name}}().{{mqttUpdaterAttribute}}() = {{mqttUpdaterField}};
René Schöne's avatar
René Schöne committed
21
  {{/getRootTypeComponents}}
René Schöne's avatar
René Schöne committed
22
}