Class UnixSocketConnectorFactory

  • All Implemented Interfaces:
    Discoverable, ConnectorFactory

    public class UnixSocketConnectorFactory
    extends HttpConnectorFactory
    Builds Unix Domain Socket connectors.

    Configuration Parameters:

    Name Default Description
    path /tmp/dropwizard.sock The path to the unix domain socket file.

    • Constructor Detail

      • UnixSocketConnectorFactory

        public UnixSocketConnectorFactory()
    • Method Detail

      • getPath

        public String getPath()
      • setPath

        public void setPath​(String path)
      • build

        public org.eclipse.jetty.server.Connector build​(org.eclipse.jetty.server.Server server,
                                                        com.codahale.metrics.MetricRegistry metrics,
                                                        String name,
                                                        @Nullable org.eclipse.jetty.util.thread.ThreadPool threadPool)
        Description copied from interface: ConnectorFactory
        Create a new connector.
        Specified by:
        build in interface ConnectorFactory
        Overrides:
        build in class HttpConnectorFactory
        Parameters:
        server - the application's Server instance
        metrics - the application's metrics
        name - the application's name
        threadPool - the application's thread pool
        Returns:
        a Connector