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 TypeMethodDescriptionvoid
addHandler
(int apiNum, BinaryMsgClientHandler handler) Register a handler with the specified api num.getName()
int
msg
(int apiNum) Create a newBinaryMsg
with the specified api number.void
setVersion
(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 newBinaryMsg
with the specified api number.- Parameters:
apiNum
- the api number for the message
-
getName
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int version)
-