Server.ServerStateActive, Server.ServerStateInactive
Constructor and Description |
---|
LocalServer(Scope scope)
Create a new LocalServer object that exposes its methods under
the scope @a scope.
|
LocalServer(java.lang.String scope)
Create a new LocalServer object that exposes its methods under
the scope @a scope.
|
Modifier and Type | Method and Description |
---|---|
<U,T> void |
addMethod(java.lang.String name,
DataCallback<U,T> callback) |
void |
addMethod(java.lang.String name,
EventCallback callback) |
void |
waitForShutdown() |
activate, deactivate, getMethods, isActive
getId, getRouter, getScope, getTransportFactory
public LocalServer(Scope scope)
scope
- The common super-scope under which the methods of
the newly created server should be provided.public LocalServer(java.lang.String scope)
scope
- The common super-scope under which the methods of
the newly created server should be provided.public <U,T> void addMethod(java.lang.String name, DataCallback<U,T> callback) throws InitializeException
InitializeException
public void addMethod(java.lang.String name, EventCallback callback) throws InitializeException
InitializeException
public void waitForShutdown()