public class JettyWebSocketServer extends Object
| Constructor and Description |
|---|
JettyWebSocketServer(int port) |
JettyWebSocketServer(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
<S,R> void |
addService(String path,
Class<R> responseClass,
java.util.function.Function<R,S> serviceFactory) |
<T> void |
addServlet(String path,
java.util.function.Function<net.openhft.chronicle.wire.MarshallableOut,T> outWrapper,
java.util.function.BiConsumer<net.openhft.chronicle.wire.WireIn,T> channel) |
void |
close() |
void |
start() |
public JettyWebSocketServer(String host, int port)
public JettyWebSocketServer(int port)
public <T> void addServlet(String path, java.util.function.Function<net.openhft.chronicle.wire.MarshallableOut,T> outWrapper, java.util.function.BiConsumer<net.openhft.chronicle.wire.WireIn,T> channel)
public <S,R> void addService(String path, Class<R> responseClass, java.util.function.Function<R,S> serviceFactory)
public void start()
public void close()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.