DEFAULT_HOST, DEFAULT_PORT| Constructor and Description |
|---|
StatelessServer()
Creates a new server node with the default server host name and port.
|
StatelessServer(String inHostname,
int inPort)
Creates a new server node with the given server host name and port.
|
StatelessServer(String inHost,
int inPort,
ContextClassProvider inContextClassProvider)
Create a new StatelessServer instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends StatelessServiceBase> |
publish(T impl,
Class<T> iface)
Publishes the given service interface, supported by the given
implementation, and returns a handle that can be used to stop
the interface.
|
void |
stop()
Shuts down the receiver.
|
public StatelessServer(String inHost, int inPort, ContextClassProvider inContextClassProvider)
inHost - a String valueinPort - an int valueinContextClassProvider - a ContextClassProvider valuepublic StatelessServer(String inHostname, int inPort)
inHost - a String valueinPort - an int valuepublic StatelessServer()
public <T extends StatelessServiceBase> ServiceInterface publish(T impl, Class<T> iface)
impl - The implementation.iface - The interface class.public void stop()
Copyright © 2015. All Rights Reserved.