Remove deprecated listener endpoint adapters (#844)
* Remove deprecated listener endpoint adapters This commit removes the previously deprecated listener endpoint adapters.
This commit is contained in:
@@ -54,7 +54,11 @@ However, Spring Boot has introduced a generic message container factory customiz
|
||||
|
||||
Replace all instances of `ConcurrentPulsarListenerContainerFactoryCustomizer` with `org.springframework.boot.autoconfigure.pulsar.PulsarContainerFactoryCustomizer<ConcurrentPulsarListenerContainerFactoryCustomizer<?>>`.
|
||||
|
||||
=== Removals
|
||||
The following previously deprecated listener endpoint adapters have been removed in favor of default methods in the listener endpoint interfaces:
|
||||
|
||||
- `org.springframework.pulsar.config.PulsarListenerEndpointAdapter`
|
||||
- `org.springframework.pulsar.reactive.config.ReactivePulsarListenerEndpointAdapter`
|
||||
|
||||
=== Breaking Changes
|
||||
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2022-2023 the original author or authors.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* https://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.springframework.pulsar.reactive.config;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.pulsar.client.api.SubscriptionType;
|
||||
import org.apache.pulsar.common.schema.SchemaType;
|
||||
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.pulsar.reactive.listener.ReactivePulsarMessageListenerContainer;
|
||||
import org.springframework.pulsar.support.MessageConverter;
|
||||
|
||||
/**
|
||||
* Adapter to avoid having to implement all methods.
|
||||
*
|
||||
* @param <T> Message payload type.
|
||||
* @author Christophe Bornet
|
||||
* @deprecated for removal in favor of {@link ReactivePulsarListenerEndpoint}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class ReactivePulsarListenerEndpointAdapter<T> implements ReactivePulsarListenerEndpoint<T> {
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSubscriptionName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubscriptionType getSubscriptionType() {
|
||||
return SubscriptionType.Exclusive;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getTopics() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTopicPattern() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean getAutoStartup() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setupListenerContainer(ReactivePulsarMessageListenerContainer<T> listenerContainer,
|
||||
MessageConverter messageConverter) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchemaType getSchemaType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Integer getConcurrency() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFluxListener() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean getUseKeyOrderedProcessing() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,103 +0,0 @@
|
||||
/*
|
||||
* Copyright 2022-2023 the original author or authors.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
* https://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.springframework.pulsar.config;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.apache.pulsar.client.api.SubscriptionType;
|
||||
import org.apache.pulsar.common.schema.SchemaType;
|
||||
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.pulsar.listener.AckMode;
|
||||
import org.springframework.pulsar.listener.PulsarMessageListenerContainer;
|
||||
import org.springframework.pulsar.support.MessageConverter;
|
||||
|
||||
/**
|
||||
* Adapter to avoid having to implement all methods.
|
||||
*
|
||||
* @author Soby Chacko
|
||||
* @author Alexander Preuß
|
||||
* @deprecated for removal in favor of {@link PulsarListenerEndpoint}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class PulsarListenerEndpointAdapter implements PulsarListenerEndpoint {
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSubscriptionName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubscriptionType getSubscriptionType() {
|
||||
return SubscriptionType.Exclusive;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<String> getTopics() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTopicPattern() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean getAutoStartup() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setupListenerContainer(PulsarMessageListenerContainer listenerContainer,
|
||||
MessageConverter messageConverter) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBatchListener() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SchemaType getSchemaType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Properties getConsumerProperties() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Integer getConcurrency() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AckMode getAckMode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user