Class MembershipServiceBase

    • Field Detail

      • properties

        protected java.util.Properties properties
        The implementation specific properties
      • channel

        protected Channel channel
    • Constructor Detail

      • MembershipServiceBase

        public MembershipServiceBase()
    • Method Detail

      • setProperties

        public void setProperties​(java.util.Properties properties)
        Sets the properties for the membership service. This must be called before the start() method is called. The properties are implementation specific.
        Specified by:
        setProperties in interface MembershipService
        properties - - to be used to configure the membership service.
      • getProperties

        public java.util.Properties getProperties()
        Specified by:
        getProperties in interface MembershipService
        the properties for the configuration used.
      • hasMembers

        public boolean hasMembers()
        Specified by:
        hasMembers in interface MembershipService
        true if the the group contains members
      • getMember

        public Member getMember​(Member mbr)
        Description copied from interface: MembershipService
        Retrieve the specified member from the membership.
        Specified by:
        getMember in interface MembershipService
        mbr - The member to retrieve
        the member
      • setMembershipListener

        public void setMembershipListener​(MembershipListener listener)
        Description copied from interface: MembershipService
        Sets the membership listener, only one listener can be added. If you call this method twice, the last listener will be used.
        Specified by:
        setMembershipListener in interface MembershipService
        listener - The listener
      • setChannel

        public void setChannel​(Channel channel)
        Description copied from interface: MembershipService
        Set the channel that is related to this MembershipService
        Specified by:
        setChannel in interface MembershipService
        channel - The channel
      • start

        public void start()
                   throws java.lang.Exception
        Description copied from interface: MembershipService
        Starts the membership service. If a membership listeners is added the listener will start to receive membership events. Performs a start level 1 and 2
        Specified by:
        start in interface MembershipService
        java.lang.Exception - if the service fails to start.