public interface IConnection extends Wrapper
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(IConnectionListener connectionListener)
Append connection listener
|
void |
connect()
Connect with remote host
|
void |
disconnect()
Disconnect wit remote host
|
long |
getCreatedTime()
Return created time
|
String |
getKey()
Return identifier of connection.
|
InetAddress |
getRemoteAddress()
Return remote host address
|
int |
getRemotePort()
Return remote socket port
|
boolean |
isConnected()
Return true if is connection is valid
|
boolean |
isNetworkInitiated()
Return true if connection is incomming
|
void |
release()
Clear all attachec resources (close socket)
|
void |
remAllConnectionListener()
Remove all connection listeners
|
void |
remConnectionListener(IConnectionListener connectionListener)
Remove connection listener
|
void |
sendMessage(IMessage message)
Send message to remote host
|
isWrapperFor, unwraplong getCreatedTime()
String getKey()
void connect()
throws TransportException
TransportExceptionvoid disconnect()
throws InternalError
InternalErrorvoid sendMessage(IMessage message) throws TransportException, OverloadException
message - diameter messageTransportExceptionOverloadExceptionvoid release()
throws IOException
IOExceptionboolean isNetworkInitiated()
boolean isConnected()
InetAddress getRemoteAddress()
int getRemotePort()
void addConnectionListener(IConnectionListener connectionListener)
connectionListener - listener instancevoid remAllConnectionListener()
void remConnectionListener(IConnectionListener connectionListener)
connectionListener - listener instanceCopyright © 2016. All Rights Reserved.