org.otfeed
Interface IConnectionFactory

All Known Implementing Classes:
OTConnectionFactory, OTPooledConnectionFactory

public interface IConnectionFactory

Defines contract for the connection factory service.

This is the central interface of the org.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)
          Connects to the server.
 

Method Detail

connect

IConnection connect(IConnectionStateListener listener)
Connects to the server. This call does not block, the connection process is started asynchronously, in a separate thread (event-dispatching thread).

To monitor connection progress, use listener parameter.

Parameters:
listener - listener to receive connection state events. This parameter may be null, to indicate that there is no interest in monitoring connection status.


Copyright © 2007 Mike Kroutikov. All Rights Reserved.