Interface DistributedLocalService


  • public interface DistributedLocalService
    Local Service API of the Keyple Distributed Solution.
    Since:
    2.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T extends org.eclipse.keyple.core.common.KeypleDistributedLocalServiceExtension>
      T
      getExtension​(java.lang.Class<T> distributedLocalServiceExtensionClass)
      Returns the specific implementation of a KeypleDistributedLocalServiceExtension
      java.lang.String getName()
      Returns the name of the distributed local service.
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the distributed local service.
        Returns:
        A not empty string.
        Since:
        2.0.0
      • getExtension

        <T extends org.eclipse.keyple.core.common.KeypleDistributedLocalServiceExtension> T getExtension​(java.lang.Class<T> distributedLocalServiceExtensionClass)
        Returns the specific implementation of a KeypleDistributedLocalServiceExtension

        Note : the provided argument is used at compile time to check the type consistency.

        Type Parameters:
        T - The type of the service extension
        Parameters:
        distributedLocalServiceExtensionClass - the specific class of the local service
        Returns:
        a KeypleDistributedLocalServiceExtension