Class BinaryMsgClientIface
java.lang.Object
com.tccc.kos.commons.core.client.binarymsg.BinaryMsgClientIface
Handler interface to register with a
BinaryMsgClient.- Since:
- 1.0
- Version:
- 2023-12-16
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryMsgClientIface(String name, int version) Create a client iface with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(int apiNum, BinaryMsgClientHandler handler) Register a handler with the specified api num.getName()intmsg(int apiNum) Create a newBinaryMsgwith the specified api number.voidsetVersion(int version)
-
Constructor Details
-
BinaryMsgClientIface
Create a client iface with the specified name.- Parameters:
name- name of the ifaceversion- iface version
-
-
Method Details
-
addHandler
Register a handler with the specified api num.- Parameters:
apiNum- the api number the hanlder is forhandler- the handler to process messages
-
msg
Create a newBinaryMsgwith the specified api number.- Parameters:
apiNum- the api number for the message
-
getName
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int version)
-