|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.Connection
public final class Connection
A connection is a high level communication mechanism. It abstracts from the underlying protocol used to transfer the data.
| Constructor Summary | |
|---|---|
Connection(ConnectionType connectionType,
String name,
NameserverProxy nameserver)
Creates a new connection. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the connection. |
ConnectionType |
getConnectionType()
Gets the type of the connection. |
String |
getName()
Gets the name of the connection. |
void |
initialize()
Initializes the connection. |
boolean |
isInitialized()
Returns true if this connection is initialized. |
Message |
receive()
Receives a message. |
void |
send(Message message)
Sends the given message over the channel. |
String |
toString()
|
Message |
tryReceive(int timeout,
TimeUnit timeUnit)
Tries to receive a message from the channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Connection(ConnectionType connectionType,
String name,
NameserverProxy nameserver)
connectionType - The type of the connection.name - The name of the connection.nameserver - The nameserver which should be used for requests.| Method Detail |
|---|
public void initialize()
public void dispose()
Will not throw an exception.
public Message receive()
public Message tryReceive(int timeout,
TimeUnit timeUnit)
timeout - The timeout value.timeUnit - The timeout until
public void send(Message message)
message - The message to send.public String toString()
toString in class Objectpublic String getName()
public ConnectionType getConnectionType()
public boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||