public class AvailableConnections extends Object
ResumptionSupportingConnectionStore.find(SessionId).
| Constructor and Description |
|---|
AvailableConnections()
Creates a new connection pair.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnectionByAddress()
Get connection associated with the peer's address.
|
Connection |
getConnectionBySessionId()
Get connection associated with the session id.
|
boolean |
isConnectionBySessionIdKnown()
Check, if it's known to have a connection for the provided session id.
|
boolean |
isRemoveConnectionBySessionId()
Check, if the connection for the provided session id must be removed.
|
void |
setConnectionByAddress(Connection connection)
Set connection associated with the peer's address.
|
void |
setConnectionBySessionId(Connection connection)
Set connection associated with the session id.
|
void |
setRemoveConnectionBySessionId(boolean remove)
Set, if the connection for the provided session id must be removed.
|
public AvailableConnections()
public void setConnectionByAddress(Connection connection)
connection - connection associated with the peer's address. May be
null, if no connection is associated with the peer's
address.public Connection getConnectionByAddress()
null, if no connection is associated with the peer's
address.public void setConnectionBySessionId(Connection connection)
connection - connection associated with the session id. May be
null, if no connection is associated with the session
id.public Connection getConnectionBySessionId()
null,
if no connection is associated with the session id.public boolean isConnectionBySessionIdKnown()
true, if setConnectionBySessionId(Connection)
was called. Used to recognize already unsuccessful tries to find
a connection associated with the session id.public void setRemoveConnectionBySessionId(boolean remove)
remove - true, if getConnectionBySessionId() must be
removed, false, otherwise (default).public boolean isRemoveConnectionBySessionId()
true, if getConnectionBySessionId() must be
removed, false, otherwise.Copyright © 2023 Eclipse Foundation. All rights reserved.