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 TypeMethodDescriptionvoidclose()Close clientvoidconnect()Connect the clientvoiddestroy()Destroys clients.protected abstract voiddoClose()protected abstract voidprotected abstract voidprotected abstract voiddoInit()Gets client state.protected ClientStateListenerprotected EventListenervoidinit()Inits the client.protected voidsetClientState(ClientState clientState) voidsetClientStateListener(ClientStateListener clientStateListener) Sets state listener.voidsetEventListener(EventListener eventListener) Sets event listener.
-
Field Details
-
clientID
-
-
Constructor Details
-
AbstractClient
-
-
Method Details
-
setEventListener
Description copied from interface:ClientSets event listener.- Specified by:
setEventListenerin interfaceClient- Parameters:
eventListener- the event listener
-
setClientStateListener
Description copied from interface:ClientSets state listener.- Specified by:
setClientStateListenerin interfaceClient- Parameters:
clientStateListener- the client state listener
-
getClientStateListener
-
getEventListener
-
getClientState
Description copied from interface:ClientGets client state.- Specified by:
getClientStatein interfaceClient- Returns:
- current client state.
-
setClientState
-
init
public void init()Description copied from interface:ClientInits the client. -
doInit
protected abstract void doInit() -
connect
public void connect()Description copied from interface:ClientConnect the client -
doConnect
protected abstract void doConnect() -
close
public void close()Description copied from interface:ClientClose client -
doClose
protected abstract void doClose() -
destroy
public void destroy()Description copied from interface:ClientDestroys clients. -
doDestroy
protected abstract void doDestroy()
-