Class AbstractClient
java.lang.Object
com.btobits.fixengine.adaptor.client.AbstractClient
- All Implemented Interfaces:
Client
Abstract client implementation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close clientvoid
connect()
Connect the clientvoid
destroy()
Destroys clients.protected abstract void
doClose()
protected abstract void
protected abstract void
protected abstract void
doInit()
Gets client state.protected ClientStateListener
protected EventListener
void
init()
Inits the client.protected void
setClientState
(ClientState clientState) void
setClientStateListener
(ClientStateListener clientStateListener) Sets state listener.void
setEventListener
(EventListener eventListener) Sets event listener.
-
Field Details
-
clientID
-
-
Constructor Details
-
AbstractClient
-
-
Method Details
-
setEventListener
Description copied from interface:Client
Sets event listener.- Specified by:
setEventListener
in interfaceClient
- Parameters:
eventListener
- the event listener
-
setClientStateListener
Description copied from interface:Client
Sets state listener.- Specified by:
setClientStateListener
in interfaceClient
- Parameters:
clientStateListener
- the client state listener
-
getClientStateListener
-
getEventListener
-
getClientState
Description copied from interface:Client
Gets client state.- Specified by:
getClientState
in interfaceClient
- Returns:
- current client state.
-
setClientState
-
init
public void init()Description copied from interface:Client
Inits the client. -
doInit
protected abstract void doInit() -
connect
public void connect()Description copied from interface:Client
Connect the client -
doConnect
protected abstract void doConnect() -
close
public void close()Description copied from interface:Client
Close client -
doClose
protected abstract void doClose() -
destroy
public void destroy()Description copied from interface:Client
Destroys clients. -
doDestroy
protected abstract void doDestroy()
-