Package org.apache.pekko.io
Class Tcp.SO$.TcpNoDelay
java.lang.Object
org.apache.pekko.io.Tcp.SO$.TcpNoDelay
- All Implemented Interfaces:
Serializable,Inet.SocketOption,scala.Equals,scala.Product
- Enclosing class:
- Tcp.SO$
public final class Tcp.SO$.TcpNoDelay
extends Object
implements Inet.SocketOption, scala.Product, Serializable
pekko.io.Inet.SocketOption to enable or disable TCP_NODELAY
(disable or enable Nagle's algorithm)
Please note, that TCP_NODELAY is enabled by default.
For more information see java.net.Socket.setTcpNoDelay
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAction to be taken for this option after connect returned.static org.apache.pekko.io.Tcp.SO.TcpNoDelayapply(boolean on) booleanorg.apache.pekko.io.Tcp.SO.TcpNoDelaycopy(boolean on) booleanbooleaninthashCode()booleanon()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()static scala.Option<Object>unapply(org.apache.pekko.io.Tcp.SO.TcpNoDelay x$0) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.pekko.io.Inet.SocketOption
beforeConnect, beforeDatagramBind, beforeServerSocketBindMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
TcpNoDelay
public TcpNoDelay(boolean on)
-
-
Method Details
-
apply
public static org.apache.pekko.io.Tcp.SO.TcpNoDelay apply(boolean on) -
unapply
-
on
public boolean on() -
afterConnect
Description copied from interface:Inet.SocketOptionAction to be taken for this option after connect returned.- Specified by:
afterConnectin interfaceInet.SocketOption
-
copy
public org.apache.pekko.io.Tcp.SO.TcpNoDelay copy(boolean on) -
copy$default$1
public boolean copy$default$1() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-