Wolfizen icon

Custom MessageChannel Implementation [2/3]

Wolfizen | PRO | 01/12/16 02:01:51 AM UTC | 0 ⭐ | 226 👁️ | Never ⏰ | []
Java |

650 B

|

None

|

0 👍

/

0 👎

public interface MutableMessageChannel<R,M> extends MessageChannel<R,M> {
 
    /**
     * Adds a recipient to this MessageChannel
     *
     * @param recipient The recipient to add
     *
     * @return If the list of recipients changed as a result of this call
     */
    boolean addRecipient(R recipient);
 
    /**
     * Clears the list of recipients
     */
    void clearRecipients();
 
    /**
     * Removes a recipient to this MessageChannel
     *
     * @param recipient The recipient to remove
     *
     * @return If the list of recipients changed as a result of this call
     */
    boolean removeRecipient(R recipient);
}

Comments