Module io.helidon.common.socket
Package io.helidon.common.socket
Class SocketOptions.BuilderBase.SocketOptionsImpl
java.lang.Object
io.helidon.common.socket.SocketOptions.BuilderBase.SocketOptionsImpl
- All Implemented Interfaces:
Prototype.Api,SocketOptions
- Enclosing class:
SocketOptions.BuilderBase<BUILDER extends SocketOptions.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SocketOptions>
protected static class SocketOptions.BuilderBase.SocketOptionsImpl
extends Object
implements SocketOptions
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.socket.SocketOptions
SocketOptions.Builder, SocketOptions.BuilderBase<BUILDER extends SocketOptions.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends SocketOptions> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSocketOptionsImpl(SocketOptions.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionSocket connect timeout.booleaninthashCode()Socket read timeout.booleanConfigure socket keep alive.Map<SocketOption<?>, Object> Arbitrary socket options.Socket receive buffer size.booleanSocket reuse address.Socket send buffer size.booleanThis option may improve performance on some systems.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.common.socket.SocketOptions
configureSocket, configureSocket
-
Constructor Details
-
SocketOptionsImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
socketOptions
Description copied from interface:SocketOptionsArbitrary socket options. Socket options that have dedicated methods in this type will be ignored if configured within the map.- Specified by:
socketOptionsin interfaceSocketOptions- Returns:
- custom socket options
-
connectTimeout
Description copied from interface:SocketOptionsSocket connect timeout. Default is 10 seconds.- Specified by:
connectTimeoutin interfaceSocketOptions- Returns:
- connect timeout duration
-
readTimeout
Description copied from interface:SocketOptionsSocket read timeout. Default is 30 seconds.- Specified by:
readTimeoutin interfaceSocketOptions- Returns:
- read timeout duration
-
socketReceiveBufferSize
Description copied from interface:SocketOptionsSocket receive buffer size.- Specified by:
socketReceiveBufferSizein interfaceSocketOptions- Returns:
- buffer size, in bytes
- See Also:
-
socketSendBufferSize
Description copied from interface:SocketOptionsSocket send buffer size.- Specified by:
socketSendBufferSizein interfaceSocketOptions- Returns:
- buffer size, in bytes
- See Also:
-
socketReuseAddress
public boolean socketReuseAddress()Description copied from interface:SocketOptionsSocket reuse address. Default istrue.- Specified by:
socketReuseAddressin interfaceSocketOptions- Returns:
- whether to reuse address
- See Also:
-
socketKeepAlive
public boolean socketKeepAlive()Description copied from interface:SocketOptionsConfigure socket keep alive. Default istrue.- Specified by:
socketKeepAlivein interfaceSocketOptions- Returns:
- keep alive
- See Also:
-
tcpNoDelay
public boolean tcpNoDelay()Description copied from interface:SocketOptionsThis option may improve performance on some systems. Default isfalse.- Specified by:
tcpNoDelayin interfaceSocketOptions- Returns:
- whether to use TCP_NODELAY, defaults to
false - See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-