Class APIManager

  • All Implemented Interfaces:
    com.smartfoxserver.bitswarm.service.IService

    public class APIManager
    extends java.lang.Object
    implements com.smartfoxserver.bitswarm.service.IService
    • Constructor Detail

      • APIManager

        public APIManager()
    • Method Detail

      • init

        public void init​(java.lang.Object o)
        Description copied from interface: com.smartfoxserver.bitswarm.service.IService
        Initialize service
        Specified by:
        init in interface com.smartfoxserver.bitswarm.service.IService
        Parameters:
        o - custom parameters
      • getSFSApi

        public ISFSApi getSFSApi()
      • destroy

        public void destroy​(java.lang.Object arg0)
        Description copied from interface: com.smartfoxserver.bitswarm.service.IService
        Destroy service
        Specified by:
        destroy in interface com.smartfoxserver.bitswarm.service.IService
        Parameters:
        arg0 - custom parameters
      • getName

        public java.lang.String getName()
        Description copied from interface: com.smartfoxserver.bitswarm.service.IService
        Get the service name
        Specified by:
        getName in interface com.smartfoxserver.bitswarm.service.IService
        Returns:
        the service name
      • handleMessage

        public void handleMessage​(java.lang.Object msg)
        Description copied from interface: com.smartfoxserver.bitswarm.service.IService
        Send message to service
        Specified by:
        handleMessage in interface com.smartfoxserver.bitswarm.service.IService
        Parameters:
        msg - the message
      • setName

        public void setName​(java.lang.String arg0)
        Description copied from interface: com.smartfoxserver.bitswarm.service.IService
        Set the service name
        Specified by:
        setName in interface com.smartfoxserver.bitswarm.service.IService
        Parameters:
        arg0 - the service name