<commit_before>/**
 * Copyright 2014 <NAME>, <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.redisson.core;

import io.netty.util.concurrent.Future;

/**
 * Distributed topic. Messages are delivered to all message listeners across Redis cluster.
 *
 * @author <NAME>
 *
 * @param <M> the type of message object
 */
public interface RTopicAsync<M> {

    /**
     * Publish the message to all subscribers of this topic asynchronously
     *
     * @param message
     * @return the <code>Future</code> object with number of clients that received the message
     */
    Future<Long> publishAsync(M message);

    /**
     * Subscribes to status changes of this topic
     *
     * @param listener
     * @return
     * @see org.redisson.core.StatusListener
     */
    int addListener(StatusListener listener);

    /**
     * Removes the listener by <code>id</code> for listening this topic
     *
     * @param listenerId
     */
    void removeListener(int listenerId);

}
<commit_msg>listener methods removed from RTopicAsync<commit_after>/**
 * Copyright 2014 <NAME>, <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.redisson.core;

import io.netty.util.concurrent.Future;

/**
 * Distributed topic. Messages are delivered to all message listeners across Redis cluster.
 *
 * @author <NAME>
 *
 * @param <M> the type of message object
 */
public interface RTopicAsync<M> {

    /**
     * Publish the message to all subscribers of this topic asynchronously
     *
     * @param message
     * @return the <code>Future</code> object with number of clients that received the message
     */
    Future<Long> publishAsync(M message);

}

{'fraction_non_alphanumeric': 0.08811551277304702, 'fraction_numerical': 0.005923731951129212, 'mean_word_length': 3.2888888888888888, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7384525', 'n_tokens_mistral': 726, 'n_tokens_neox': 705, 'n_words': 309}