public class ServiceRegistration extends Object implements Externalizable
| Constructor and Description |
|---|
ServiceRegistration()
Deprecated.
exposed only for de/serialization purpose.
|
ServiceRegistration(String namespace,
Map<String,String> tags,
Collection<ServiceMethodDefinition> methods)
Create a new service registration.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ServiceMethodDefinition> |
methods() |
String |
namespace() |
void |
readExternal(ObjectInput in) |
Map<String,String> |
tags() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
@Deprecated public ServiceRegistration()
public ServiceRegistration(String namespace, Map<String,String> tags, Collection<ServiceMethodDefinition> methods)
namespace - the namespace to usetags - tagsmethods - a collection of service method definitionspublic String namespace()
public Collection<ServiceMethodDefinition> methods()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2015–2021. All rights reserved.