Class GpioFactory

    • Method Detail

      • getInstance

        public static GpioController getInstance()

        Return default instance of GpioController.

        Note: this is not thread safe singleton pattern implementation. Implementation does not provide any synchronization or mechanisms to prevent instantiation of two instances.

        Returns:
        Return a new GpioController impl instance.
      • getDefaultProvider

        public static GpioProvider getDefaultProvider()

        Return default instance of GpioProvider.

        Note: this is not thread safe singleton pattern implementation. Implementation does not provide any synchronization or mechanisms to prevent instantiation of two instances.

        Returns:
        Return a new GpioController impl instance.
      • setDefaultProvider

        public static void setDefaultProvider​(GpioProvider provider)
        Sets default GpioProvider.
        Parameters:
        provider - default gpio provider
      • setExecutorServiceFactory

        public static void setExecutorServiceFactory​(ExecutorServiceFactory executorServiceFactory)
        Parameters:
        executorServiceFactory - service factory instance