alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
* <td>{@link ChannelOption#SO_REUSEADDR} * </tr> * <td>{@link ChannelOption#SO_RCVBUF} * </tr> * <td>{@link ChannelOption#SO_SNDBUF} * </tr> * <td>{@link ChannelOption#SO_REUSEADDR} * </tr> * <td>{@link ChannelOption#SO_LINGER} * </tr> * <td>{@link ChannelOption#SO_RCVBUF} * </tr> * <td>{@link ChannelOption#SO_SNDBUF} * </tr> * <td>{@link UdtChannelOption#PROTOCOL_RECEIVE_BUFFER_SIZE} * <td>{@link #setProtocolReceiveBufferSize(int)} * </tr> * <td>{@link UdtChannelOption#PROTOCOL_SEND_BUFFER_SIZE} * <td>{@link #setProtocolSendBufferSize(int)} * </tr> * <td>{@link UdtChannelOption#SYSTEM_RECEIVE_BUFFER_SIZE} * <td>{@link #setSystemReceiveBufferSize(int)} * </tr> * <td>{@link UdtChannelOption#SYSTEM_SEND_BUFFER_SIZE} * <td>{@link #setSystemSendBufferSize(int)} * </tr> * </table> * <p> * Note that {@link TypeUDT#DATAGRAM} message oriented channels treat * {@code "receiveBufferSize"} and {@code "sendBufferSize"} as maximum message * size. If received or sent message does not fit specified sizes, * {@link ChannelException} will be thrown. */ public interface UdtChannelConfig extends ChannelConfig { /** * Gets {@link OptionUDT#Protocol_Receive_Buffer_Size} */ int getProtocolReceiveBufferSize(); /** * Gets {@link OptionUDT#Protocol_Send_Buffer_Size} */ int getProtocolSendBufferSize(); /** * Gets the {@link ChannelOption#SO_RCVBUF} option. */ int getReceiveBufferSize(); /** * Gets the {@link ChannelOption#SO_SNDBUF} option. */ int getSendBufferSize(); /** * Gets the {@link ChannelOption#SO_LINGER} option. */ int getSoLinger(); /** * Gets {@link OptionUDT#System_Receive_Buffer_Size} */ int getSystemReceiveBufferSize(); /** * Gets {@link OptionUDT#System_Send_Buffer_Size} */ int getSystemSendBufferSize(); /** * Gets the {@link ChannelOption#SO_REUSEADDR} option. */ boolean isReuseAddress(); @Override UdtChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis); @Override @Deprecated UdtChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead); @Override UdtChannelConfig setWriteSpinCount(int writeSpinCount); @Override UdtChannelConfig setAllocator(ByteBufAllocator allocator); @Override UdtChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator); @Override UdtChannelConfig setAutoRead(boolean autoRead); @Override UdtChannelConfig setAutoClose(boolean autoClose); @Override @Deprecated UdtChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark); @Override @Deprecated UdtChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark); @Override UdtChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark); @Override UdtChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator); /** * Sets {@link OptionUDT#Protocol_Receive_Buffer_Size} */ UdtChannelConfig setProtocolReceiveBufferSize(int size); /** * Sets {@link OptionUDT#Protocol_Send_Buffer_Size} */ UdtChannelConfig setProtocolSendBufferSize(int size); /** * Sets the {@link ChannelOption#SO_RCVBUF} option. */ UdtChannelConfig setReceiveBufferSize(int receiveBufferSize); /** * Sets the {@link ChannelOption#SO_REUSEADDR} option. */ UdtChannelConfig setReuseAddress(boolean reuseAddress); /** * Sets the {@link ChannelOption#SO_SNDBUF} option. */ UdtChannelConfig setSendBufferSize(int sendBufferSize); /** * Sets the {@link ChannelOption#SO_LINGER} option. */ UdtChannelConfig setSoLinger(int soLinger); /** * Sets {@link OptionUDT#System_Receive_Buffer_Size} */ UdtChannelConfig setSystemReceiveBufferSize(int size); /** * Sets {@link OptionUDT#System_Send_Buffer_Size} */ UdtChannelConfig setSystemSendBufferSize(int size); }

Other Java examples (source code examples)

Here is a short list of links related to this Java UdtChannelConfig.java source code file:

Java example source code file (UdtChannelConfig.java)

This example Java source code file (UdtChannelConfig.java) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

channelconfig, deprecated, override, udtchannelconfig

The UdtChannelConfig.java Java example source code

/*
 * Copyright 2012 The Netty Project
 *
 * The Netty Project licenses this file to you 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 io.netty.channel.udt;

import com.barchart.udt.OptionUDT;
import com.barchart.udt.TypeUDT;
import io.netty.buffer.ByteBufAllocator;
import io.netty.channel.ChannelConfig;
import io.netty.channel.ChannelException;
import io.netty.channel.ChannelOption;
import io.netty.channel.MessageSizeEstimator;
import io.netty.channel.RecvByteBufAllocator;
import io.netty.channel.WriteBufferWaterMark;

/**
 * A {@link ChannelConfig} for a {@link UdtChannel}.
 * <p>
 * <h3>Available options
 * In addition to the options provided by {@link ChannelConfig},
 * {@link UdtChannelConfig} allows the following options in the option map:
 * <p>
 * <table border="1" cellspacing="0" cellpadding="6">
 * <tr>
 * <th>Name
 * <th>Associated setter method
 * </tr>
{@link #setReuseAddress(boolean)}
{@link #setReceiveBufferSize(int)}
{@link #setSendBufferSize(int)}
{@link #setReuseAddress(boolean)}
{@link #setSoLinger(int)}
{@link #setReceiveBufferSize(int)}
{@link #setSendBufferSize(int)}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.