Class BinaryMsgClientIface

java.lang.Object
com.tccc.kos.commons.core.client.binarymsg.BinaryMsgClientIface

public class BinaryMsgClientIface extends Object
Handler interface to register with a BinaryMsgClient.
Since:
1.0
Version:
2023-12-16
  • Constructor Details

    • BinaryMsgClientIface

      public BinaryMsgClientIface(String name, int version)
      Create a client iface with the specified name.
      Parameters:
      name - name of the iface
      version - iface version
  • Method Details

    • addHandler

      public void addHandler(int apiNum, BinaryMsgClientHandler handler)
      Register a handler with the specified api num.
      Parameters:
      apiNum - the api number the hanlder is for
      handler - the handler to process messages
    • msg

      public BinaryMsg msg(int apiNum)
      Create a new BinaryMsg with the specified api number.
      Parameters:
      apiNum - the api number for the message
    • getName

      public String getName()
    • getVersion

      public int getVersion()
    • setVersion

      public void setVersion(int version)