|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnectionParameters
Encapsulates the parameters required to create an IConnection. The
parameters are used as the argument for the
IConnectionBroker#connect(IConnection) method.
Implementations must define the #equals(Object) method to
compare connection parameters with another instance.
| Method Summary | |
|---|---|
int |
getRemoteContextHashCode()
Get a unique integer for the remote context. |
String |
getRemoteContextIdentity()
Get the identity of the IFrameworkContext at the remote end of
the connection |
boolean |
isEqual(IConnectionParameters connectionParameters)
Checks the connection parameters for equality. |
| Method Detail |
|---|
String getRemoteContextIdentity()
IFrameworkContext at the remote end of
the connection
int getRemoteContextHashCode()
boolean isEqual(IConnectionParameters connectionParameters)
IConnection instance extends this.
It is a requirement that, if a connection is outbound (
IConnection.isOutbound()) and based on these parameters,
parameters.isEqual(connection) is true.
IConnectionParameters parameters = ...
broker.connect(parameters);
IConnection connection = ... // connection created by the broker
// this will be true
parameters.isEqual(connection);
connectionParameters - the other set of connection parameters to compare with this
true if the two parameters represent the same
connection attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||