Class Remoting


  • @Deprecated
    public final class Remoting
    extends Object
    Deprecated.
    The standalone interface into Remoting. This class contains static methods that are useful to standalone programs for managing endpoints and services in a simple fashion.
    • Method Detail

      • createEndpoint

        public static Endpoint createEndpoint​(String endpointName,
                                              org.xnio.XnioWorker xnioWorker,
                                              org.xnio.OptionMap optionMap)
                                       throws IOException
        Deprecated.
        Create an endpoint with the given configuration and existing worker.
        Parameters:
        endpointName - the name of the endpoint
        xnioWorker - the XNIO worker instance to use
        optionMap - the options to configure the endpoint
        Returns:
        the new endpoint
        Throws:
        IOException - if an error occurs
      • createEndpoint

        public static Endpoint createEndpoint​(String endpointName,
                                              org.xnio.Xnio xnio,
                                              org.xnio.OptionMap optionMap)
                                       throws IOException
        Deprecated.
        Create an endpoint with the given configuration which manages its own worker.
        Parameters:
        endpointName - the name of the endpoint
        xnio - the XNIO instance to use
        optionMap - the options to configure the endpoint
        Returns:
        the new endpoint
        Throws:
        IOException - if an error occurs
      • createEndpoint

        public static Endpoint createEndpoint​(String endpointName,
                                              org.xnio.OptionMap optionMap)
                                       throws IOException
        Deprecated.
        Create a new endpoint with the given configuration. This method (starting with 3.3) will use the class loader of XNIO itself to construct the XNIO implementation.
        Parameters:
        endpointName - the name of the endpoint
        optionMap - the options to configure the endpoint
        Returns:
        the new endpoint
        Throws:
        IOException - if an error occurs
      • createEndpoint

        public static Endpoint createEndpoint​(org.xnio.OptionMap optionMap)
                                       throws IOException
        Deprecated.
        Create an anonymous endpoint.
        Parameters:
        optionMap - the options to configure the endpoint
        Returns:
        the new endpoint
        Throws:
        IOException - if an error occurs
      • createEndpoint

        public static Endpoint createEndpoint()
                                       throws IOException
        Deprecated.
        Create an anonymous endpoint.
        Returns:
        the new endpoint
        Throws:
        IOException - if an error occurs