Interface ReplicatedObject<K extends Serializable>

    • Method Detail

      • getState

        void getState​(OutputStream ostream)
        Allows an application to write a state through a provided OutputStream.
        Parameters:
        ostream - the OutputStream
      • getState

        void getState​(K state_id,
                      OutputStream ostream)
        Allows an application to write a partial state through a provided OutputStream.
        Parameters:
        state_id - id of the partial state requested
        ostream - the OutputStream
      • setState

        void setState​(InputStream istream)
        Allows an application to read a state through a provided InputStream.
        Parameters:
        istream - the InputStream
      • setState

        void setState​(K state_id,
                      InputStream istream)
        Allows an application to read a partial state through a provided InputStream.
        Parameters:
        state_id - id of the partial state requested
        istream - the InputStream
      • setAddress

        void setAddress​(Serializable address)
        Allows the replicator to set the local address from the channel
        Parameters:
        address -
      • droppedMembers

        void droppedMembers​(Collection<Serializable> addresses)
        Called when members are dropped
        Parameters:
        addresses -
      • hasState

        boolean hasState​(K state_id)
        Return true if the object has the given state
        Parameters:
        state_id -
        Returns: