Interface ServerFactory
-
public interface ServerFactory
Simple interface for starting a server programmatically
- Since:
- 0.6.7
- Version:
- 2.0
- Author:
- Michael Grove
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Server
createServer(java.net.SocketAddress theAddress, Options theOptions, com.codahale.metrics.MetricRegistry theMetrics)
Create a new server listening on the network interface at the specified port with the given configuration.
-
-
-
Method Detail
-
createServer
Server createServer(java.net.SocketAddress theAddress, Options theOptions, com.codahale.metrics.MetricRegistry theMetrics)
Create a new server listening on the network interface at the specified port with the given configuration.- Parameters:
theAddress
- address the server should listen ontheOptions
- configuration options for the server for specifying such things, as whether or not SSL is enabled.- Returns:
- the new server
-
-