Class AbstractClient

java.lang.Object
com.btobits.fixengine.adaptor.client.AbstractClient
All Implemented Interfaces:
Client

public abstract class AbstractClient extends Object implements Client
Abstract client implementation.
  • Field Details

    • clientID

      protected String clientID
  • Constructor Details

    • AbstractClient

      protected AbstractClient(String clientID)
  • Method Details

    • setEventListener

      public void setEventListener(EventListener eventListener)
      Description copied from interface: Client
      Sets event listener.
      Specified by:
      setEventListener in interface Client
      Parameters:
      eventListener - the event listener
    • setClientStateListener

      public void setClientStateListener(ClientStateListener clientStateListener)
      Description copied from interface: Client
      Sets state listener.
      Specified by:
      setClientStateListener in interface Client
      Parameters:
      clientStateListener - the client state listener
    • getClientStateListener

      protected ClientStateListener getClientStateListener()
    • getEventListener

      protected EventListener getEventListener()
    • getClientState

      public ClientState getClientState()
      Description copied from interface: Client
      Gets client state.
      Specified by:
      getClientState in interface Client
      Returns:
      current client state.
    • setClientState

      protected void setClientState(ClientState clientState)
    • init

      public void init()
      Description copied from interface: Client
      Inits the client.
      Specified by:
      init in interface Client
    • doInit

      protected abstract void doInit()
    • connect

      public void connect()
      Description copied from interface: Client
      Connect the client
      Specified by:
      connect in interface Client
    • doConnect

      protected abstract void doConnect()
    • close

      public void close()
      Description copied from interface: Client
      Close client
      Specified by:
      close in interface Client
    • doClose

      protected abstract void doClose()
    • destroy

      public void destroy()
      Description copied from interface: Client
      Destroys clients.
      Specified by:
      destroy in interface Client
    • doDestroy

      protected abstract void doDestroy()