public class Handler extends Object
Constructor and Description |
---|
Handler() |
Modifier and Type | Method and Description |
---|---|
void |
connect(LogonRequest logonRequest)
Establishes the connection.
|
void |
disconnect()
Forces the session disconnect.
|
static String |
getDefaultCstmApplVerId()
Returns the version of supported Eurex T7 Release.
|
String |
getName()
Returns the name of the Handler.
|
HandlerState |
getState()
Returns handler state.
|
static String |
getVendor()
Returns the vendor name.
|
String |
getVersion()
Returns the version of the Handler.
|
void |
init(HandlerSettings settings)
Initializes the handler.
|
void |
init(biz.onixs.util.settings.Settings settings)
Initializes the handler.
|
void |
init(String settingsResource)
Initializes the handler.
|
boolean |
send(ApplicationMessage message)
Sends the message.
|
void |
setAdminListener(AdminListener listener)
Sets the administrative events listener.
|
void |
setErrorListener(ErrorListener listener)
Sets the error listener.
|
void |
setHandlerStateListener(HandlerStateListener listener)
Sets the handler state listener.
|
void |
setInboundMessageListener(InboundMessageListener listener)
Sets the inbound message event listener.
|
void |
setOrderHandlingListener(OrderHandlingListener listener)
Sets the order handling listener.
|
void |
setOtherListener(OtherListener listener)
Sets the other message listener.
|
void |
setOutboundMessageListener(OutboundMessageListener listener)
Sets the outbound message event listener.
|
void |
setQuoteAndCrossRequestListener(QuoteAndCrossRequestListener listener)
Sets the quote and cross request listener.
|
void |
setQuoteHandlingListener(QuoteHandlingListener listener)
Sets the quote handling listener.
|
void |
setReceivedBytesListener(ReceivedBytesListener listener)
Sets the bytes received event listener.
|
void |
setStrategyCreationListener(StrategyCreationListener listener)
Sets the strategy creation listener.
|
void |
setWarningListener(WarningListener listener)
Sets the warning listener.
|
void |
shutdown()
Shuts the handler down.
|
public void init(String settingsResource) throws HandlerException
settingsResource
- settings resource to load fromHandlerException
public void init(biz.onixs.util.settings.Settings settings) throws HandlerException
settings
- settings to applyHandlerException
public void init(HandlerSettings settings) throws HandlerException
settings
- settings to applyHandlerException
public void connect(LogonRequest logonRequest) throws HandlerException
logonRequest
- initial logon messageHandlerException
public void disconnect()
public void shutdown() throws HandlerException
HandlerException
public boolean send(ApplicationMessage message)
message
- message to sendpublic void setErrorListener(ErrorListener listener)
listener
- error listenerpublic void setWarningListener(WarningListener listener)
listener
- warning listenerpublic void setHandlerStateListener(HandlerStateListener listener)
listener
- handler state listenerpublic void setAdminListener(AdminListener listener)
listener
- administrative events listenerpublic void setInboundMessageListener(InboundMessageListener listener)
listener
- inbound message event listenerpublic void setOutboundMessageListener(OutboundMessageListener listener)
listener
- outbound message event listenerpublic void setReceivedBytesListener(ReceivedBytesListener listener)
listener
- bytes received event listenerpublic void setStrategyCreationListener(StrategyCreationListener listener)
listener
- strategy creation listenerpublic void setOrderHandlingListener(OrderHandlingListener listener)
listener
- order handling listenerpublic void setQuoteAndCrossRequestListener(QuoteAndCrossRequestListener listener)
listener
- quote and cross request listenerpublic void setQuoteHandlingListener(QuoteHandlingListener listener)
listener
- quote handling listenerpublic void setOtherListener(OtherListener listener)
listener
- other message listenerpublic HandlerState getState()
public static String getDefaultCstmApplVerId()
public String getName()
public String getVersion()
public static String getVendor()
Copyright © 2012–2024 Onix Solutions. All rights reserved.