Top Fields Constructors Methods
io.netty.channel.epoll

public final Class EpollDomainSocketChannelConfig

extends EpollChannelConfig
implements DomainSocketChannelConfig, DuplexChannelConfig
Class Inheritance
All Implemented Interfaces
io.netty.channel.socket.DuplexChannelConfig, io.netty.channel.ChannelConfig, io.netty.channel.unix.DomainSocketChannelConfig
Imports
io.netty.buffer.ByteBufAllocator, io.netty.channel.ChannelOption, .MessageSizeEstimator, .RecvByteBufAllocator, .WriteBufferWaterMark, io.netty.channel.socket.DuplexChannelConfig, io.netty.channel.unix.DomainSocketChannelConfig, .DomainSocketReadMode, io.netty.util.internal.ObjectUtil, java.io.IOException, java.util.Map

Field Summary

Modifier and TypeField and Description
private volatile boolean
private volatile DomainSocketReadMode

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public <T> T
public Map<ChannelOption<?>, Object>
public DomainSocketReadMode
public int
public int
public boolean
isAllowHalfClosure()

Implements io.netty.channel.socket.DuplexChannelConfig.isAllowHalfClosure.

Returns true if and only if the channel should not close itself when its remote peer shuts down output to make the connection half-closed.
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
setAllowHalfClosure(boolean allowHalfClosure)

Implements io.netty.channel.socket.DuplexChannelConfig.setAllowHalfClosure.

Sets whether the channel should not close itself when its remote peer shuts down output to make the connection half-closed.
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
setConnectTimeoutMillis(int
the connect timeout in milliseconds. 0 to disable.
connectTimeoutMillis
)

Overrides io.netty.channel.epoll.EpollChannelConfig.setConnectTimeoutMillis.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setConnectTimeoutMillis, io.netty.channel.ChannelConfig.setConnectTimeoutMillis.

Sets the connect timeout of the channel in milliseconds.
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
public <T> boolean
setOption(ChannelOption<T> option, T value)

Overrides io.netty.channel.epoll.EpollChannelConfig.setOption.

Implements io.netty.channel.ChannelConfig.setOption.

Sets a configuration property with the specified name and value.
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
setReceiveBufferSize(int receiveBufferSize)

public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
setSendBufferSize(int sendBufferSize)

public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
public EpollDomainSocketChannelConfig
Inherited from io.netty.channel.epoll.EpollChannelConfig:
autoReadClearedgetEpollModegetMaxBytesPerGatheringWritesetMaxBytesPerGatheringWritesocket

Field Detail

allowHalfClosureback to summary
private volatile boolean allowHalfClosure
modeback to summary
private volatile DomainSocketReadMode mode

Constructor Detail

EpollDomainSocketChannelConfigback to summary
pack-priv EpollDomainSocketChannelConfig(AbstractEpollChannel channel)

Method Detail

getOptionback to summary
public <T> T getOption(ChannelOption<T> option)

Overrides io.netty.channel.epoll.EpollChannelConfig.getOption.

Implements io.netty.channel.ChannelConfig.getOption.

Doc from io.netty.channel.ChannelConfig.getOption.

Return the value of the given ChannelOption

Annotations
@SuppressWarnings:unchecked
@Override
getOptionsback to summary
public Map<ChannelOption<?>, Object> getOptions()

Overrides io.netty.channel.epoll.EpollChannelConfig.getOptions.

Implements io.netty.channel.ChannelConfig.getOptions.

Doc from io.netty.channel.ChannelConfig.getOptions.

Return all set ChannelOption's.

Annotations
@Override
getReadModeback to summary
public DomainSocketReadMode getReadMode()

Implements io.netty.channel.unix.DomainSocketChannelConfig.getReadMode.

Doc from io.netty.channel.unix.DomainSocketChannelConfig.getReadMode.

Return the DomainSocketReadMode for the channel.

Annotations
@Override
getReceiveBufferSizeback to summary
public int getReceiveBufferSize()
getSendBufferSizeback to summary
public int getSendBufferSize()
isAllowHalfClosureback to summary
public boolean isAllowHalfClosure()

Implements io.netty.channel.socket.DuplexChannelConfig.isAllowHalfClosure.

Doc from io.netty.channel.socket.DuplexChannelConfig.isAllowHalfClosure.

Returns true if and only if the channel should not close itself when its remote peer shuts down output to make the connection half-closed. If false, the connection is closed automatically when the remote peer shuts down output.

Annotations
@Override
setAllocatorback to summary
public EpollDomainSocketChannelConfig setAllocator(ByteBufAllocator allocator)

Overrides io.netty.channel.epoll.EpollChannelConfig.setAllocator.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setAllocator, io.netty.channel.socket.DuplexChannelConfig.setAllocator, io.netty.channel.ChannelConfig.setAllocator.

Doc from io.netty.channel.ChannelConfig.setAllocator.

Set the ByteBufAllocator which is used for the channel to allocate buffers.

Annotations
@Override
setAllowHalfClosureback to summary
public EpollDomainSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)

Implements io.netty.channel.socket.DuplexChannelConfig.setAllowHalfClosure.

Doc from io.netty.channel.socket.DuplexChannelConfig.setAllowHalfClosure.

Sets whether the channel should not close itself when its remote peer shuts down output to make the connection half-closed. If true the connection is not closed when the remote peer shuts down output. Instead, ChannelInboundHandler#userEventTriggered(ChannelHandlerContext, Object) is invoked with a ChannelInputShutdownEvent object. If false, the connection is closed automatically.

Annotations
@Override
setAutoCloseback to summary
public EpollDomainSocketChannelConfig setAutoClose(boolean autoClose)

Overrides io.netty.channel.DefaultChannelConfig.setAutoClose.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setAutoClose, io.netty.channel.socket.DuplexChannelConfig.setAutoClose, io.netty.channel.ChannelConfig.setAutoClose.

Doc from io.netty.channel.ChannelConfig.setAutoClose.

Sets whether the Channel should be closed automatically and immediately on write failure. The default is true.

Annotations
@Override
setAutoReadback to summary
public EpollDomainSocketChannelConfig setAutoRead(boolean autoRead)

Overrides io.netty.channel.epoll.EpollChannelConfig.setAutoRead.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setAutoRead, io.netty.channel.socket.DuplexChannelConfig.setAutoRead, io.netty.channel.ChannelConfig.setAutoRead.

Doc from io.netty.channel.ChannelConfig.setAutoRead.

Sets if ChannelHandlerContext#read() will be invoked automatically so that a user application doesn't need to call it at all. The default value is true.

Annotations
@Override
setConnectTimeoutMillisback to summary
public EpollDomainSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)

Overrides io.netty.channel.epoll.EpollChannelConfig.setConnectTimeoutMillis.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setConnectTimeoutMillis, io.netty.channel.ChannelConfig.setConnectTimeoutMillis.

Doc from io.netty.channel.ChannelConfig.setConnectTimeoutMillis.

Sets the connect timeout of the channel in milliseconds. If the Channel does not support connect operation, this property is not used at all, and therefore will be ignored.

Parameters
connectTimeoutMillis:int

the connect timeout in milliseconds. 0 to disable.

Annotations
@Override
setEpollModeback to summary
public EpollDomainSocketChannelConfig setEpollMode(EpollMode mode)

Overrides io.netty.channel.epoll.EpollChannelConfig.setEpollMode.

Doc from io.netty.channel.epoll.EpollChannelConfig.setEpollMode.

Set the EpollMode used. Default is EpollMode#EDGE_TRIGGERED. If you want to use isAutoRead() false or getMaxMessagesPerRead() and have an accurate behaviour you should use EpollMode#LEVEL_TRIGGERED. Be aware this config setting can only be adjusted before the channel was registered.

Annotations
@Override
setMaxMessagesPerReadback to summary
public EpollDomainSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)

Overrides io.netty.channel.epoll.EpollChannelConfig.setMaxMessagesPerRead.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setMaxMessagesPerRead, io.netty.channel.socket.DuplexChannelConfig.setMaxMessagesPerRead, io.netty.channel.ChannelConfig.setMaxMessagesPerRead.

Doc from io.netty.channel.DefaultChannelConfig.setMaxMessagesPerRead.

Deprecated

Annotations
@Override
@Deprecated
setMessageSizeEstimatorback to summary
public EpollDomainSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator)

Overrides io.netty.channel.epoll.EpollChannelConfig.setMessageSizeEstimator.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setMessageSizeEstimator, io.netty.channel.socket.DuplexChannelConfig.setMessageSizeEstimator, io.netty.channel.ChannelConfig.setMessageSizeEstimator.

Doc from io.netty.channel.ChannelConfig.setMessageSizeEstimator.

Set the MessageSizeEstimator which is used for the channel to detect the size of a message.

Annotations
@Override
setOptionback to summary
public <T> boolean setOption(ChannelOption<T> option, T value)

Overrides io.netty.channel.epoll.EpollChannelConfig.setOption.

Implements io.netty.channel.ChannelConfig.setOption.

Doc from io.netty.channel.ChannelConfig.setOption.

Sets a configuration property with the specified name and value. To override this method properly, you must call the super class:

public boolean setOption(ChannelOption<T> option, T value) {
    if (super.setOption(option, value)) {
        return true;
    }

    if (option.equals(additionalOption)) {
        ....
        return true;
    }

    return false;
}
Returns:boolean

true if and only if the property has been set

Annotations
@Override
setReadModeback to summary
public EpollDomainSocketChannelConfig setReadMode(DomainSocketReadMode mode)

Implements io.netty.channel.unix.DomainSocketChannelConfig.setReadMode.

Doc from io.netty.channel.unix.DomainSocketChannelConfig.setReadMode.

Change the DomainSocketReadMode for the channel. The default is DomainSocketReadMode#BYTES which means bytes will be read from the io.netty.channel.Channel and passed through the pipeline. If DomainSocketReadMode#FILE_DESCRIPTORS is used FileDescriptors will be passed through the io.netty.channel.ChannelPipeline. This setting can be modified on the fly if needed.

Annotations
@Override
setReceiveBufferSizeback to summary
public EpollDomainSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setRecvByteBufAllocatorback to summary
public EpollDomainSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)

Overrides io.netty.channel.epoll.EpollChannelConfig.setRecvByteBufAllocator.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setRecvByteBufAllocator, io.netty.channel.socket.DuplexChannelConfig.setRecvByteBufAllocator, io.netty.channel.ChannelConfig.setRecvByteBufAllocator.

Doc from io.netty.channel.ChannelConfig.setRecvByteBufAllocator.

Set the RecvByteBufAllocator which is used for the channel to allocate receive buffers.

Annotations
@Override
setSendBufferSizeback to summary
public EpollDomainSocketChannelConfig setSendBufferSize(int sendBufferSize)
setWriteBufferHighWaterMarkback to summary
public EpollDomainSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferHighWaterMark.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setWriteBufferHighWaterMark, io.netty.channel.ChannelConfig.setWriteBufferHighWaterMark.

Doc from io.netty.channel.ChannelConfig.setWriteBufferHighWaterMark.

Deprecated

Sets the high water mark of the write buffer. If the number of bytes queued in the write buffer exceeds this value, Channel#isWritable() will start to return false.

Annotations
@Override
@Deprecated
setWriteBufferLowWaterMarkback to summary
public EpollDomainSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferLowWaterMark.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setWriteBufferLowWaterMark, io.netty.channel.ChannelConfig.setWriteBufferLowWaterMark.

Doc from io.netty.channel.ChannelConfig.setWriteBufferLowWaterMark.

Deprecated

Sets the low water mark of the write buffer. Once the number of bytes queued in the write buffer exceeded the high water mark and then dropped down below this value, Channel#isWritable() will start to return true again.

Annotations
@Override
@Deprecated
setWriteBufferWaterMarkback to summary
public EpollDomainSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferWaterMark.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setWriteBufferWaterMark, io.netty.channel.socket.DuplexChannelConfig.setWriteBufferWaterMark, io.netty.channel.ChannelConfig.setWriteBufferWaterMark.

Doc from io.netty.channel.ChannelConfig.setWriteBufferWaterMark.

Set the WriteBufferWaterMark which is used for setting the high and low water mark of the write buffer.

Annotations
@Override
setWriteSpinCountback to summary
public EpollDomainSocketChannelConfig setWriteSpinCount(int writeSpinCount)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteSpinCount.

Implements io.netty.channel.unix.DomainSocketChannelConfig.setWriteSpinCount, io.netty.channel.socket.DuplexChannelConfig.setWriteSpinCount, io.netty.channel.ChannelConfig.setWriteSpinCount.

Doc from io.netty.channel.ChannelConfig.setWriteSpinCount.

Sets the maximum loop count for a write operation until WritableByteChannel#write(ByteBuffer) returns a non-zero value. It is similar to what a spin lock is used for in concurrency programming. It improves memory utilization and write throughput depending on the platform that JVM runs on. The default value is 16.

Annotations
@Override