public class LocalAbstractConnectionHandler extends java.lang.Object implements IAbstractConnectionHandler
Modifier and Type | Field and Description |
---|---|
protected AbstractConnection |
con
The connection.
|
protected LocalAbstractConnectionHandler |
conhandler
The other connection.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
nonfunc
The non-functional properties.
|
Constructor and Description |
---|
LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc) |
LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc,
LocalAbstractConnectionHandler conhandler) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection.
|
IFuture<java.lang.Void> |
doClose()
Called from connection.
|
protected AbstractConnection |
getConnection()
Get the connection.
|
LocalAbstractConnectionHandler |
getConnectionHandler()
Get the conhandler.
|
int |
getConnectionId()
Get the id.
|
java.util.Map<java.lang.String,java.lang.Object> |
getNonFunctionalProperties()
Get the non-functional properties of the connection.
|
void |
initReceived()
Received the init message.
|
void |
notifyInited() |
IFuture<java.lang.Void> |
sendInit()
Send init message.
|
void |
setConnection(AbstractConnection con)
Set the connection (needed as connection and handler need each other).
|
void |
setConnectionHandler(LocalAbstractConnectionHandler conhandler)
Set the connection handler of the other side.
|
protected AbstractConnection con
protected LocalAbstractConnectionHandler conhandler
protected java.util.Map<java.lang.String,java.lang.Object> nonfunc
public LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc)
public LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc, LocalAbstractConnectionHandler conhandler)
public IFuture<java.lang.Void> sendInit()
sendInit
in interface IAbstractConnectionHandler
public void notifyInited()
notifyInited
in interface IAbstractConnectionHandler
public IFuture<java.lang.Void> doClose()
doClose
in interface IAbstractConnectionHandler
public void initReceived()
public void close()
public int getConnectionId()
protected AbstractConnection getConnection()
public void setConnection(AbstractConnection con)
setConnection
in interface IAbstractConnectionHandler
public LocalAbstractConnectionHandler getConnectionHandler()
public void setConnectionHandler(LocalAbstractConnectionHandler conhandler)
public java.util.Map<java.lang.String,java.lang.Object> getNonFunctionalProperties()
getNonFunctionalProperties
in interface IAbstractConnectionHandler