Mark transport udt as deprecated as barchart-udt is not maintained anymore

Motivation:

barchart-udt is not maintained anymore so there is not way for us to get fixes for udt. Because of this we should mark the transport as deprecated.

Modifications:

Deprecate all udt classes.

Result:

transport udt is deprecated and so the user knows it will be removed in the future.
This commit is contained in:
Norman Maurer 2017-02-28 14:29:00 +01:00
parent 417eea8466
commit ed370dcebb
18 changed files with 54 additions and 0 deletions

View File

@ -31,7 +31,10 @@ import static io.netty.channel.udt.UdtChannelOption.*;
/** /**
* The default {@link UdtChannelConfig} implementation. * The default {@link UdtChannelConfig} implementation.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class DefaultUdtChannelConfig extends DefaultChannelConfig implements public class DefaultUdtChannelConfig extends DefaultChannelConfig implements
UdtChannelConfig { UdtChannelConfig {

View File

@ -28,7 +28,10 @@ import static io.netty.channel.ChannelOption.*;
/** /**
* The default {@link UdtServerChannelConfig} implementation. * The default {@link UdtServerChannelConfig} implementation.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class DefaultUdtServerChannelConfig extends DefaultUdtChannelConfig public class DefaultUdtServerChannelConfig extends DefaultUdtChannelConfig
implements UdtServerChannelConfig { implements UdtServerChannelConfig {

View File

@ -24,7 +24,10 @@ import java.net.InetSocketAddress;
* UDT {@link Channel}. * UDT {@link Channel}.
* <p> * <p>
* Supported UDT {@link UdtChannel} are available via {@link NioUdtProvider}. * Supported UDT {@link UdtChannel} are available via {@link NioUdtProvider}.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public interface UdtChannel extends Channel { public interface UdtChannel extends Channel {
/** /**

View File

@ -69,7 +69,10 @@ import io.netty.channel.RecvByteBufAllocator;
* {@code "receiveBufferSize"} and {@code "sendBufferSize"} as maximum message * {@code "receiveBufferSize"} and {@code "sendBufferSize"} as maximum message
* size. If received or sent message does not fit specified sizes, * size. If received or sent message does not fit specified sizes,
* {@link ChannelException} will be thrown. * {@link ChannelException} will be thrown.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public interface UdtChannelConfig extends ChannelConfig { public interface UdtChannelConfig extends ChannelConfig {
/** /**

View File

@ -20,7 +20,10 @@ import io.netty.channel.ChannelOption;
/** /**
* Options for the UDT transport * Options for the UDT transport
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public final class UdtChannelOption<T> extends ChannelOption<T> { public final class UdtChannelOption<T> extends ChannelOption<T> {
/** /**

View File

@ -24,7 +24,10 @@ import io.netty.channel.udt.nio.NioUdtProvider;
* The message container that is used for {@link TypeUDT#DATAGRAM} messages. * The message container that is used for {@link TypeUDT#DATAGRAM} messages.
* @see NioUdtProvider#MESSAGE_CONNECTOR * @see NioUdtProvider#MESSAGE_CONNECTOR
* @see NioUdtProvider#MESSAGE_RENDEZVOUS * @see NioUdtProvider#MESSAGE_RENDEZVOUS
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public final class UdtMessage extends DefaultByteBufHolder { public final class UdtMessage extends DefaultByteBufHolder {
public UdtMessage(final ByteBuf data) { public UdtMessage(final ByteBuf data) {

View File

@ -22,7 +22,10 @@ import io.netty.channel.udt.nio.NioUdtProvider;
* UDT {@link ServerChannel}. * UDT {@link ServerChannel}.
* <p> * <p>
* Supported UDT {@link UdtServerChannel} are available via {@link NioUdtProvider}. * Supported UDT {@link UdtServerChannel} are available via {@link NioUdtProvider}.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public interface UdtServerChannel extends ServerChannel, UdtChannel { public interface UdtServerChannel extends ServerChannel, UdtChannel {
} }

View File

@ -31,7 +31,10 @@ import io.netty.channel.RecvByteBufAllocator;
* {@code "receiveBufferSize"} and {@code "sendBufferSize"} as maximum message * {@code "receiveBufferSize"} and {@code "sendBufferSize"} as maximum message
* size. If received or sent message does not fit specified sizes, * size. If received or sent message does not fit specified sizes,
* {@link ChannelException} will be thrown. * {@link ChannelException} will be thrown.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public interface UdtServerChannelConfig extends UdtChannelConfig { public interface UdtServerChannelConfig extends UdtChannelConfig {
/** /**

View File

@ -38,7 +38,10 @@ import static java.nio.channels.SelectionKey.*;
/** /**
* Common base for Netty Byte/Message UDT Stream/Datagram acceptors. * Common base for Netty Byte/Message UDT Stream/Datagram acceptors.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public abstract class NioUdtAcceptorChannel extends AbstractNioMessageChannel implements UdtServerChannel { public abstract class NioUdtAcceptorChannel extends AbstractNioMessageChannel implements UdtServerChannel {
protected static final InternalLogger logger = protected static final InternalLogger logger =

View File

@ -21,7 +21,10 @@ import io.netty.channel.udt.UdtChannel;
/** /**
* Byte Channel Acceptor for UDT Streams. * Byte Channel Acceptor for UDT Streams.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class NioUdtByteAcceptorChannel extends NioUdtAcceptorChannel { public class NioUdtByteAcceptorChannel extends NioUdtAcceptorChannel {
public NioUdtByteAcceptorChannel() { public NioUdtByteAcceptorChannel() {

View File

@ -41,7 +41,10 @@ import static java.nio.channels.SelectionKey.*;
/** /**
* Byte Channel Connector for UDT Streams. * Byte Channel Connector for UDT Streams.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class NioUdtByteConnectorChannel extends AbstractNioByteChannel implements UdtChannel { public class NioUdtByteConnectorChannel extends AbstractNioByteChannel implements UdtChannel {
private static final InternalLogger logger = private static final InternalLogger logger =

View File

@ -19,7 +19,10 @@ import com.barchart.udt.TypeUDT;
/** /**
* Byte Channel Rendezvous for UDT Streams. * Byte Channel Rendezvous for UDT Streams.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class NioUdtByteRendezvousChannel extends NioUdtByteConnectorChannel { public class NioUdtByteRendezvousChannel extends NioUdtByteConnectorChannel {
public NioUdtByteRendezvousChannel() { public NioUdtByteRendezvousChannel() {

View File

@ -21,7 +21,10 @@ import io.netty.channel.udt.UdtChannel;
/** /**
* Message Channel Acceptor for UDT Datagrams. * Message Channel Acceptor for UDT Datagrams.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class NioUdtMessageAcceptorChannel extends NioUdtAcceptorChannel { public class NioUdtMessageAcceptorChannel extends NioUdtAcceptorChannel {
public NioUdtMessageAcceptorChannel() { public NioUdtMessageAcceptorChannel() {

View File

@ -42,7 +42,10 @@ import static java.nio.channels.SelectionKey.*;
* Message Connector for UDT Datagrams. * Message Connector for UDT Datagrams.
* <p> * <p>
* Note: send/receive must use {@link UdtMessage} in the pipeline * Note: send/receive must use {@link UdtMessage} in the pipeline
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class NioUdtMessageConnectorChannel extends AbstractNioMessageChannel implements UdtChannel { public class NioUdtMessageConnectorChannel extends AbstractNioMessageChannel implements UdtChannel {
private static final InternalLogger logger = private static final InternalLogger logger =

View File

@ -22,7 +22,10 @@ import io.netty.channel.udt.UdtMessage;
* Message Rendezvous for UDT Datagrams. * Message Rendezvous for UDT Datagrams.
* <p> * <p>
* Note: send/receive must use {@link UdtMessage} in the pipeline * Note: send/receive must use {@link UdtMessage} in the pipeline
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public class NioUdtMessageRendezvousChannel extends public class NioUdtMessageRendezvousChannel extends
NioUdtMessageConnectorChannel { NioUdtMessageConnectorChannel {

View File

@ -38,7 +38,10 @@ import java.nio.channels.spi.SelectorProvider;
* Provides {@link ChannelFactory} for UDT channels. * Provides {@link ChannelFactory} for UDT channels.
* <p> * <p>
* Provides {@link SelectorProvider} for UDT channels. * Provides {@link SelectorProvider} for UDT channels.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
public final class NioUdtProvider<T extends UdtChannel> implements ChannelFactory<T> { public final class NioUdtProvider<T extends UdtChannel> implements ChannelFactory<T> {
/** /**

View File

@ -17,6 +17,9 @@
* UDT Transport for NIO Channels. * UDT Transport for NIO Channels.
* <p> * <p>
* @see io.netty.example.udt * @see io.netty.example.udt
*
* @deprecated The UDT transport is no longer maintained.
*/ */
@Deprecated
package io.netty.channel.udt.nio; package io.netty.channel.udt.nio;

View File

@ -17,6 +17,9 @@
* UDT Transport. * UDT Transport.
* <p> * <p>
* @see io.netty.example.udt * @see io.netty.example.udt
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/ */
@Deprecated
package io.netty.channel.udt; package io.netty.channel.udt;