Interface INativeService


  • public interface INativeService
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the service
      java.lang.String id()
      Returns the string id of this NativeService.
      boolean isValid()
      True if the INativeService instance is valid
      int maxConnections()
      Returns the maximum pool size the NativeService.
      int poolSize()
      Returns the current pool size of the NativeService.
      void prestartConnection()
      Prestarts a process connection.
      IRequest request​(java.lang.String call)
      Creates an IRequest object to be executed by the NativeService.
      int totalRequests()
      Returns the total number of requests handled by this pool.
    • Method Detail

      • request

        IRequest request​(java.lang.String call)
        Creates an IRequest object to be executed by the NativeService.
        Parameters:
        call - NativeService call name
        Returns:
        IRequest object
      • dispose

        void dispose()
        Dispose the service
      • isValid

        boolean isValid()
        True if the INativeService instance is valid
        Returns:
        true if the INativeService instance is valid
      • poolSize

        int poolSize()
        Returns the current pool size of the NativeService.
        Returns:
        the current pool size of the NativeService.
      • maxConnections

        int maxConnections()
        Returns the maximum pool size the NativeService.
        Returns:
        the maximum pool size the NativeService.
      • totalRequests

        int totalRequests()
        Returns the total number of requests handled by this pool.
        Returns:
        the total number of requests handled by this pool
      • id

        java.lang.String id()
        Returns the string id of this NativeService.
        Returns:
        string id of this NativeService
      • prestartConnection

        void prestartConnection()
                         throws NativeCommException
        Prestarts a process connection. Connections are usually initiated lazily on first request. This method forces a connection to be established without sending a request.
        Throws:
        NativeCommException - on failure