public final class NetworkService<T> extends Object implements Stage, ConnectionFactory<T>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Codec<T> |
getCodec() |
Identifier |
getConnectionFactoryId() |
IdentifierFactory |
getIdentifierFactory() |
Identifier |
getLocalEndPointId()
Each connection factory has own local end point id.
|
Identifier |
getMyId() |
Naming |
getNameClient() |
Transport |
getTransport() |
Connection<T> |
newConnection(Identifier destId)
Creates a new connection.
|
void |
registerId(Identifier id) |
void |
unregisterId(Identifier id) |
public void registerId(Identifier id)
public void unregisterId(Identifier id)
public Identifier getMyId()
public Transport getTransport()
public Naming getNameClient()
public IdentifierFactory getIdentifierFactory()
public void close() throws Exception
close in interface AutoCloseableExceptionpublic Connection<T> newConnection(Identifier destId)
ConnectionFactorynewConnection in interface ConnectionFactory<T>destId - a destination identifierpublic Identifier getConnectionFactoryId()
getConnectionFactoryId in interface ConnectionFactory<T>public Identifier getLocalEndPointId()
ConnectionFactorygetLocalEndPointId in interface ConnectionFactory<T>Copyright © 2017 The Apache Software Foundation. All rights reserved.