public class DatagramServers
extends java.lang.Object
DatagramServer instances in code more succinct.| Constructor and Description |
|---|
DatagramServers() |
| Modifier and Type | Method and Description |
|---|---|
static <IN,OUT> DatagramServerSpec<IN,OUT> |
create(reactor.core.Environment env,
java.lang.Class<? extends DatagramServer> serverImpl)
|
static <IN,OUT> DatagramServerSpec<IN,OUT> |
create(reactor.core.Environment env,
java.lang.String dispatcher,
java.lang.Class<? extends DatagramServer> serverImpl)
Create a
DatagramServerSpec for further configuration using the given Environment, Dispatcher type, and serverImpl. |
public static <IN,OUT> DatagramServerSpec<IN,OUT> create(reactor.core.Environment env, java.lang.Class<? extends DatagramServer> serverImpl)
IN - type of the inputOUT - type of the outputenv - the Environment to useserverImpl - the implementation of DatagramServer to useDatagramServerSpecpublic static <IN,OUT> DatagramServerSpec<IN,OUT> create(reactor.core.Environment env, java.lang.String dispatcher, java.lang.Class<? extends DatagramServer> serverImpl)
DatagramServerSpec for further configuration using the given Environment, Dispatcher type, and serverImpl.IN - type of the inputOUT - type of the outputenv - the Environment to usedispatcher - the type of Dispatcher to useserverImpl - the implementation of DatagramServer to useDatagramServerSpec