public abstract class AbstractConnection extends java.lang.Object implements IConnection
Modifier and Type | Field and Description |
---|---|
protected IAbstractConnectionHandler |
ch
The abstract connection handler.
|
protected boolean |
closed |
protected boolean |
closing |
protected int |
id
The connection id.
|
protected boolean |
ini
The initiator flag.
|
protected boolean |
inited
Boolean flag if connection is inited, closing, closed.
|
protected IComponentIdentifier |
initiator
The connection initiator.
|
protected boolean |
input
The input flag.
|
protected IComponentIdentifier |
participant
The participant.
|
Constructor and Description |
---|
AbstractConnection(IComponentIdentifier sender,
IComponentIdentifier receiver,
int id,
boolean input,
boolean initiator,
IAbstractConnectionHandler ch)
Create a new input connection.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection.
|
IAbstractConnectionHandler |
getConnectionHandler()
Get the connection handler.
|
int |
getConnectionId()
Get the id.
|
IComponentIdentifier |
getInitiator()
Get the initiator.
|
java.util.Map<java.lang.String,java.lang.Object> |
getNonFunctionalProperties()
Get the non-functional properties of the connection.
|
IComponentIdentifier |
getParticipant()
Get the participant.
|
boolean |
isClosed()
Get the closed.
|
boolean |
isClosing()
Get the closed.
|
boolean |
isInited()
Get the inited.
|
boolean |
isInitiatorSide()
Test if this connection is the initiator side.
|
boolean |
isInputConnection()
Test if this connection is an input connection.
|
void |
setClosed()
Set the connection to closed.
|
void |
setClosing()
Set the connection to closed.
|
void |
setInited()
Set the inited.
|
protected boolean inited
protected boolean closed
protected boolean closing
protected int id
protected IComponentIdentifier initiator
protected IComponentIdentifier participant
protected boolean input
protected boolean ini
protected IAbstractConnectionHandler ch
public AbstractConnection(IComponentIdentifier sender, IComponentIdentifier receiver, int id, boolean input, boolean initiator, IAbstractConnectionHandler ch)
public int getConnectionId()
getConnectionId
in interface IConnection
public IComponentIdentifier getInitiator()
getInitiator
in interface IConnection
public IComponentIdentifier getParticipant()
getParticipant
in interface IConnection
public boolean isInited()
public void setInited()
inited
- The inited to set.public void setClosing()
public void setClosed()
public boolean isClosing()
public boolean isClosed()
public void close()
close
in interface IConnection
public boolean isInitiatorSide()
public boolean isInputConnection()
public java.util.Map<java.lang.String,java.lang.Object> getNonFunctionalProperties()
getNonFunctionalProperties
in interface IConnection
public IAbstractConnectionHandler getConnectionHandler()