Search in sources :

Example 16 with RequestTransactionManager

use of org.apache.plc4x.java.spi.transaction.RequestTransactionManager in project plc4x by apache.

the class ModbusProtocolLogic method setConfiguration.

@Override
public void setConfiguration(ModbusConfiguration configuration) {
    this.requestTimeout = Duration.ofMillis(configuration.getRequestTimeout());
    this.unitIdentifier = (short) configuration.getUnitIdentifier();
    this.tm = new RequestTransactionManager(1);
}
Also used : RequestTransactionManager(org.apache.plc4x.java.spi.transaction.RequestTransactionManager)

Aggregations

RequestTransactionManager (org.apache.plc4x.java.spi.transaction.RequestTransactionManager)16 CompletableFuture (java.util.concurrent.CompletableFuture)4 Test (org.junit.jupiter.api.Test)4 Disabled (org.junit.jupiter.api.Disabled)1