Class DefaultLiveDataService
-
- All Implemented Interfaces:
-
de.jnkconsulting.e3dc.easyrscp.api.service.LiveDataService
public final class DefaultLiveDataService implements LiveDataServiceImplementation to query the live data of the home power plant
- Since:
2.0
-
-
Constructor Summary
Constructors Constructor Description DefaultLiveDataService(ConnectionPool connectionPool, FrameConverter<PowerState> convertFrameToPowerState, FrameCreator<Void> createRequestLiveDataFrame)
-
Method Summary
Modifier and Type Method Description PowerStatereadPowerState()-
-
Constructor Detail
-
DefaultLiveDataService
DefaultLiveDataService(ConnectionPool connectionPool, FrameConverter<PowerState> convertFrameToPowerState, FrameCreator<Void> createRequestLiveDataFrame)
- Parameters:
connectionPool- Connection pool to be usedconvertFrameToPowerState- Converter to create a PowerState object from a frame.createRequestLiveDataFrame- Creator for frames to query the current power state.
-
-
Method Detail
-
readPowerState
PowerState readPowerState()
-
-
-
-