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 70bcb40855
commit 4734ef61a5
18 changed files with 54 additions and 0 deletions

View File

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

View File

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

View File

@ -24,7 +24,10 @@ import java.net.InetSocketAddress;
* UDT {@link Channel}.
* <p>
* 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 {
/**

View File

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

View File

@ -20,7 +20,10 @@ import io.netty.channel.ChannelOption;
/**
* 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> {
/**

View File

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

View File

@ -22,7 +22,10 @@ import io.netty.channel.udt.nio.NioUdtProvider;
* UDT {@link ServerChannel}.
* <p>
* 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 {
}

View File

@ -32,7 +32,10 @@ import io.netty.channel.WriteBufferWaterMark;
* {@code "receiveBufferSize"} and {@code "sendBufferSize"} as maximum message
* size. If received or sent message does not fit specified sizes,
* {@link ChannelException} will be thrown.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/
@Deprecated
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.
*
* @deprecated The UDT transport is no longer maintained and will be removed.
*/
@Deprecated
public abstract class NioUdtAcceptorChannel extends AbstractNioMessageChannel implements UdtServerChannel {
protected static final InternalLogger logger =

View File

@ -21,7 +21,10 @@ import io.netty.channel.udt.UdtChannel;
/**
* 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 NioUdtByteAcceptorChannel() {

View File

@ -42,7 +42,10 @@ import static java.nio.channels.SelectionKey.OP_CONNECT;
/**
* 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 {
private static final InternalLogger logger =

View File

@ -19,7 +19,10 @@ import com.barchart.udt.TypeUDT;
/**
* 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 NioUdtByteRendezvousChannel() {

View File

@ -21,7 +21,10 @@ import io.netty.channel.udt.UdtChannel;
/**
* 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 NioUdtMessageAcceptorChannel() {

View File

@ -41,7 +41,10 @@ import static java.nio.channels.SelectionKey.*;
* Message Connector for UDT Datagrams.
* <p>
* 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 {
private static final InternalLogger logger =

View File

@ -22,7 +22,10 @@ import io.netty.channel.udt.UdtMessage;
* Message Rendezvous for UDT Datagrams.
* <p>
* 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 NioUdtMessageConnectorChannel {
public NioUdtMessageRendezvousChannel() {

View File

@ -38,7 +38,10 @@ import java.nio.channels.spi.SelectorProvider;
* Provides {@link ChannelFactory} for UDT channels.
* <p>
* 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> {
/**

View File

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

View File

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