Interface BinaryMsgIfaceFactory

All Known Implementing Classes:
FuseService, NetworkService, SpawnService

public interface BinaryMsgIfaceFactory
Given the name of an interface from a BinaryMsgSession, return an instance of BinaryMsgIface or null. This allows a single session that implements multiple interfaces to be wired into different parts of the application based on the interfaces it supports.

When the underlying session disconnects the disconnect callback will be called in order to cleanup the iface instance.

Since:
1.0
Version:
2022-08-30
  • Method Summary

    Modifier and Type
    Method
    Description
    Given the name of an interface from a BinaryMsgSession, return an instance of BinaryMsgIface or null.
  • Method Details

    • getIface

      BinaryMsgIface getIface(String name, BinaryMsgSession session)
      Given the name of an interface from a BinaryMsgSession, return an instance of BinaryMsgIface or null.
      Parameters:
      name - the name of the interface
      session - the session to back the interface
      Returns:
      the iface or null