[cleanup] [broker] Delete duplicate method definitions
package org.apache.pulsar.broker.service.nonpersistent;
import java.util.List;
-import java.util.concurrent.CompletableFuture;
import org.apache.bookkeeper.mledger.Entry;
import org.apache.bookkeeper.mledger.impl.PositionImpl;
-import org.apache.pulsar.broker.service.BrokerServiceException;
import org.apache.pulsar.broker.service.Consumer;
import org.apache.pulsar.broker.service.Dispatcher;
-import org.apache.pulsar.common.api.proto.CommandSubscribe.SubType;
import org.apache.pulsar.common.stats.Rate;
public interface NonPersistentDispatcher extends Dispatcher {
- void addConsumer(Consumer consumer) throws BrokerServiceException;
-
- void removeConsumer(Consumer consumer) throws BrokerServiceException;
-
- boolean isConsumerConnected();
-
- List<Consumer> getConsumers();
-
- boolean canUnsubscribe(Consumer consumer);
-
- CompletableFuture<Void> close();
-
- CompletableFuture<Void> disconnectAllConsumers(boolean isResetCursor);
-
- void reset();
-
- SubType getType();
-
void sendMessages(List<Entry> entries);
Rate getMessageDropRate();
