Package akka.io
Class Tcp.Register
- java.lang.Object
-
- akka.io.Tcp.Register
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded,akka.io.SelectionHandler.HasFailureMessage,Tcp.Command,Tcp.Message,java.io.Serializable,scala.Equals,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.Register extends java.lang.Object implements Tcp.Command, scala.Product, java.io.Serializable
This message must be sent to a TCP connection actor after receiving theTcp.Connectedmessage. The connection will not read any data from the socket until this message is received, because this message defines the actor which will receive all inbound data.param: handler The actor which will receive all incoming data and which will be informed when the connection is closed.
param: keepOpenOnPeerClosed If this is set to true then the connection is not automatically closed when the peer closes its half, requiring an explicit
Tcp.CloseCommandfrom our side when finished.param: useResumeWriting If this is set to true then the connection actor will refuse all further writes after issuing a
Tcp.CommandFailednotification untilResumeWritingis received. This can be used to implement NACK-based write backpressure.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqual(java.lang.Object x$1)Tcp.Registercopy(ActorRef handler, boolean keepOpenOnPeerClosed, boolean useResumeWriting)ActorRefcopy$default$1()booleancopy$default$2()booleancopy$default$3()booleanequals(java.lang.Object x$1)ActorRefhandler()inthashCode()booleankeepOpenOnPeerClosed()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString()booleanuseResumeWriting()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.io.Tcp.Command
failureMessage
-
-
-
-
Constructor Detail
-
Register
public Register(ActorRef handler, boolean keepOpenOnPeerClosed, boolean useResumeWriting)
-
-
Method Detail
-
handler
public ActorRef handler()
-
keepOpenOnPeerClosed
public boolean keepOpenOnPeerClosed()
-
useResumeWriting
public boolean useResumeWriting()
-
copy
public Tcp.Register copy(ActorRef handler, boolean keepOpenOnPeerClosed, boolean useResumeWriting)
-
copy$default$1
public ActorRef copy$default$1()
-
copy$default$2
public boolean copy$default$2()
-
copy$default$3
public boolean copy$default$3()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-