public class StatelessClient extends Node
DEFAULT_HOST, DEFAULT_PORT| Constructor and Description |
|---|
StatelessClient()
Creates a new client node with the default server host name and
port, and no client application ID.
|
StatelessClient(AppId appId)
Creates a new client node with the default server host name and
port, and the given client application ID.
|
StatelessClient(String host,
int port,
AppId appId)
Creates a new client node with the given server host name,
port, and client application ID.
|
StatelessClient(String inHost,
int inPort,
AppId inAppId,
ContextClassProvider inContextClasses)
Create a new StatelessClient instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillContext(StatelessClientContext context)
Sets the properties of the given client context, so that it may
be used for remote calls made via proxies obtained from the
receiver.
|
AppId |
getAppId()
Returns the receiver's application ID.
|
StatelessClientContext |
getContext()
Returns a client context which the client must supply as an
argument to every remote call made via proxies obtained from
the receiver.
|
<T extends StatelessServiceBase> |
getService(Class<T> inInterface)
Retrieves the client-side proxy for the given service
interface.
|
public StatelessClient(String inHost, int inPort, AppId inAppId, ContextClassProvider inContextClasses)
inHost - a String valueinPort - an int valueinAppId - an AppId valueinContextClasses - a ContextClassProvider valuepublic StatelessClient(String host, int port, AppId appId)
host - The host name.port - The port.appId - The application ID, which may be null.public StatelessClient(AppId appId)
appId - The application ID, which may be null.public StatelessClient()
public AppId getAppId()
protected void fillContext(StatelessClientContext context)
context - The context.public StatelessClientContext getContext()
public <T extends StatelessServiceBase> T getService(Class<T> inInterface)
inInterface - The interface class.Copyright © 2015. All Rights Reserved.