Class DefaultLiveDataService

  • All Implemented Interfaces:
    de.jnkconsulting.e3dc.easyrscp.api.service.LiveDataService

    
    public final class DefaultLiveDataService
     implements LiveDataService
                        

    Implementation to query the live data of the home power plant

    Since:

    2.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      PowerState readPowerState()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultLiveDataService

        DefaultLiveDataService(ConnectionPool connectionPool, FrameConverter<PowerState> convertFrameToPowerState, FrameCreator<Void> createRequestLiveDataFrame)
        Parameters:
        connectionPool - Connection pool to be used
        convertFrameToPowerState - Converter to create a PowerState object from a frame.
        createRequestLiveDataFrame - Creator for frames to query the current power state.