DEFAULT_CLIENT_HOST, DEFAULT_PORT, DEFAULT_SERVER_HOST| 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.
|
getConnectionUrl, getHost, getId, getNodeDescription, getPort, getPortDescriptors, setHost, setNodeDescription, setPortpublic StatelessServer(String inHost, int inPort, ContextClassProvider inContextClassProvider)
inHost - a String valueinPort - an int valueinContextClassProvider - a ContextClassProvider valuepublic StatelessServer(String inHostname, int inPort)
inHostname - a String valueinPort - an int valuepublic StatelessServer()
public <T extends StatelessServiceBase> ServiceInterface publish(T impl, Class<T> iface)
T - a T extends StatelessServiceBase valueimpl - The implementation.iface - The interface class.public void stop()
Copyright © 2020. All rights reserved.