// -*- C++ -*-

//=============================================================================
/**
 *  @file LF_Connect_Strategy.h
 *
 *  LF_Connect_Strategy.h,v 1.7 2003/10/28 18:29:15 bala Exp
 *
 *  @author Balachandran Natarajan <bala@cs.wustl.edu>
 */
//=============================================================================

#ifndef TAO_LF_CONNECT_STRATEGY_H
#define TAO_LF_CONNECT_STRATEGY_H

#include /**/ "ace/pre.h"

#include "Connect_Strategy.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class TAO_Connector;
class ACE_Time_Value;
class ACE_Synch_Options;

/**
 * @class TAO_LF_Connect_Strategy
 *
 * @brief Concrete implementation of a connect strategy that waits on
 *  the leader-follower during asynch connects
 */

class TAO_Export TAO_LF_Connect_Strategy : public TAO_Connect_Strategy
{
public:
  /// Constructor
  TAO_LF_Connect_Strategy (TAO_ORB_Core *orb);

  /// Destructor
  ~TAO_LF_Connect_Strategy (void);

  /*
   * Concrete implementation for this class. Please see
   * Connect_Strategy.h for details
   */
  virtual void synch_options (ACE_Time_Value *val,
                              ACE_Synch_Options &opt);

  virtual int wait (TAO_Connection_Handler *ch,
                    ACE_Time_Value *val);

};

#include /**/ "ace/post.h"

#endif /*TAO_LF_CONNECT_STRATEGY_H*/
