Class IntermediateSessionParams

    • Constructor Detail

      • IntermediateSessionParams

        public IntermediateSessionParams()
        Constructs a new instance of this class with default values.
      • IntermediateSessionParams

        public IntermediateSessionParams​(IntermediateSessionParams params)
        Implements the copy constructor.
        Parameters:
        params - The object to copy.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name to register with message bus.
        Returns:
        The name.
      • setName

        public IntermediateSessionParams setName​(java.lang.String name)
        Sets the name to register with message bus.
        Parameters:
        name - The name to set.
        Returns:
        This, to allow chaining.
      • getBroadcastName

        public boolean getBroadcastName()
        Returns whether or not to broadcast the name of this session on the network.
        Returns:
        True to broadcast, false otherwise.
      • getReplyHandler

        public ReplyHandler getReplyHandler()
        Returns the handler to receive incoming replies.
        Returns:
        The handler.
      • setReplyHandler

        public IntermediateSessionParams setReplyHandler​(ReplyHandler handler)
        Sets the handler to recive incoming replies.
        Parameters:
        handler - The handler to set.
        Returns:
        This, to allow chaining.
      • getMessageHandler

        public MessageHandler getMessageHandler()
        Returns the handler to receive incoming messages.
        Returns:
        The handler.
      • setMessageHandler

        public IntermediateSessionParams setMessageHandler​(MessageHandler handler)
        Sets the handler to recive incoming messages.
        Parameters:
        handler - The handler to set.
        Returns:
        This, to allow chaining.
      • setBroadcastName

        public IntermediateSessionParams setBroadcastName​(boolean broadcastName)
        Sets whether or not to broadcast the name of this session on the network.
        Parameters:
        broadcastName - True to broadcast, false otherwise.
        Returns:
        This, to allow chaining.