|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnectionFactory
Defines contract for the connection factory service.
This is the central interface of theorg.otfeed API.
It allows one to establish a connection to the
OpenTick server.
Implementations must be thread-safe. All implementations provided
by org.otfeed driver are thread-safe.
| Method Summary | |
|---|---|
IConnection |
connect(IConnectionStateListener listener)
Deprecated. |
IConnection |
connect(OTConnectionSpec spec,
IConnectionStateListener listener)
Connects to the server. |
| Method Detail |
|---|
@Deprecated IConnection connect(IConnectionStateListener listener)
connect(OTConnectionSpec, IConnectionStateListener)
method.
IConnection connect(OTConnectionSpec spec,
IConnectionStateListener listener)
listener
parameter.
spec - connection specification. Some implementations may accept
null value, which would mean to use some default values
for the connection parameters.listener - listener to receive connection state events. This parameter
may be null, to indicate that there is no interest in monitoring
connection status.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||