public class Service extends Object
This class is immutable and therefore thread-safe. Subclasses are allowed and should also be immutable.
Modifier | Constructor and Description |
---|---|
protected |
Service(ServiceDescription serviceDescription)
Creates a new service given the description.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shutdown procedure for the service, closing resources (e.g.
|
String |
getDescription()
A description for the service.
|
String |
getName()
A brief name for the service.
|
Map<String,ServiceMethod> |
getServiceMethods()
Returns all the methods associated with this service.
|
protected Service(ServiceDescription serviceDescription)
serviceDescription
- the description of the service, can't be nullpublic final String getName()
public final String getDescription()
public final Map<String,ServiceMethod> getServiceMethods()
public void close()
Copyright © 2015. All rights reserved.