Package net.solarnetwork.node.io.modbus
Interface ModbusConnectionAction<T>
- Type Parameters:
T- the action return type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback API for performing an action with a
ModbusConnection.
If no result object is needed, simply use Object as the parameter
type and return null from
doWithConnection(ModbusConnection).
- Since:
- 2.0
- Version:
- 1.0
- Author:
- matt
-
Method Summary
-
Method Details
-
doWithConnection
Perform an action with aModbusConnection. If no result object is needed, simply return null.- Parameters:
conn- the connection- Returns:
- the result
- Throws:
IOException- if any IO error occurs
-