Class TestAssociationHandle
java.lang.Object
org.apache.pekko.remote.transport.TestAssociationHandle
- All Implemented Interfaces:
Serializable,AssociationHandle,scala.Equals,scala.Product
public final class TestAssociationHandle
extends Object
implements AssociationHandle, scala.Product, Serializable
Deprecated.
Classic remoting is deprecated, use Artery. Since Akka 2.6.0.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.remote.transport.AssociationHandle
AssociationHandle.ActorHandleEventListener, AssociationHandle.ActorHandleEventListener$, AssociationHandle.Disassociated, AssociationHandle.Disassociated$, AssociationHandle.DisassociateInfo, AssociationHandle.HandleEvent, AssociationHandle.HandleEventListener, AssociationHandle.InboundPayload, AssociationHandle.InboundPayload$, AssociationHandle.Quarantined$, AssociationHandle.Shutdown$, AssociationHandle.Unknown$ -
Constructor Summary
ConstructorsConstructorDescriptionTestAssociationHandle(Address localAddress, Address remoteAddress, TestTransport transport, boolean inbound) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic TestAssociationHandleapply(Address localAddress, Address remoteAddress, TestTransport transport, boolean inbound) Deprecated.booleanDeprecated.copy(Address localAddress, Address remoteAddress, TestTransport transport, boolean inbound) Deprecated.Deprecated.Deprecated.Deprecated.booleanDeprecated.voiddisassociate(String reason, LoggingAdapter log) Deprecated.Closes the underlying transport link, if needed.booleanDeprecated.inthashCode()Deprecated.booleaninbound()Deprecated.key()Deprecated.Key used inpekko.remote.transport.TestTransport.AssociationRegistryto identify associations.Deprecated.Address of the local endpoint.intDeprecated.productElement(int x$1) Deprecated.productElementName(int x$1) Deprecated.scala.collection.Iterator<Object>Deprecated.Deprecated.scala.concurrent.Promise<AssociationHandle.HandleEventListener>Deprecated.The Promise returned by this call must be completed with anpekko.remote.transport.AssociationHandle.HandleEventListenerto register a listener responsible for handling incoming payload.Deprecated.Address of the remote endpoint.toString()Deprecated.Deprecated.static scala.Option<scala.Tuple4<Address,Address, TestTransport, Object>> Deprecated.booleanwritable()Deprecated.voidwritable_$eq(boolean x$1) Deprecated.booleanwrite(ByteString payload) Deprecated.Asynchronously sends the specified payload to the remote endpoint.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
TestAssociationHandle
public TestAssociationHandle(Address localAddress, Address remoteAddress, TestTransport transport, boolean inbound) Deprecated.
-
-
Method Details
-
apply
public static TestAssociationHandle apply(Address localAddress, Address remoteAddress, TestTransport transport, boolean inbound) Deprecated. -
unapply
public static scala.Option<scala.Tuple4<Address,Address, unapplyTestTransport, Object>> (TestAssociationHandle x$0) Deprecated. -
localAddress
Deprecated.Description copied from interface:AssociationHandleAddress of the local endpoint.- Specified by:
localAddressin interfaceAssociationHandle- Returns:
- Address of the local endpoint.
-
remoteAddress
Deprecated.Description copied from interface:AssociationHandleAddress of the remote endpoint.- Specified by:
remoteAddressin interfaceAssociationHandle- Returns:
- Address of the remote endpoint.
-
transport
Deprecated. -
inbound
public boolean inbound()Deprecated. -
writable
public boolean writable()Deprecated. -
writable_$eq
public void writable_$eq(boolean x$1) Deprecated. -
readHandlerPromise
Deprecated.Description copied from interface:AssociationHandleThe Promise returned by this call must be completed with anpekko.remote.transport.AssociationHandle.HandleEventListenerto register a listener responsible for handling incoming payload. Until the listener is not registered the transport SHOULD buffer incoming messages.- Specified by:
readHandlerPromisein interfaceAssociationHandle- Returns:
- Promise that must be completed with the listener responsible for handling incoming data.
-
write
Deprecated.Description copied from interface:AssociationHandleAsynchronously sends the specified payload to the remote endpoint. This method MUST be thread-safe as it might be called from different threads. This method MUST NOT block.Writes guarantee ordering of messages, but not their reception. The call to write returns with a Boolean indicating if the channel was ready for writes or not. A return value of false indicates that the channel is not yet ready for delivery (e.g.: the write buffer is full) and the sender needs to wait until the channel becomes ready again. Returning false also means that the current write was dropped (this MUST be guaranteed to ensure duplication-free delivery).
- Specified by:
writein interfaceAssociationHandle- Parameters:
payload- The payload to be delivered to the remote endpoint.- Returns:
- Boolean indicating the availability of the association for subsequent writes.
-
disassociate
Deprecated.Description copied from interface:AssociationHandleCloses the underlying transport link, if needed. Some transports might not need an explicit teardown (UDP) and some transports may not support it (hardware connections). Remote endpoint of the channel or connection MAY be notified, but this is not guaranteed. The Transport that provides the handle MUST guarantee that disassociate() could be called arbitrarily many times.- Specified by:
disassociatein interfaceAssociationHandle
-
key
Deprecated.Key used inpekko.remote.transport.TestTransport.AssociationRegistryto identify associations. Contains an ordered pair of addresses, where the first element of the pair is always the initiator of the association. -
copy
public TestAssociationHandle copy(Address localAddress, Address remoteAddress, TestTransport transport, boolean inbound) Deprecated. -
copy$default$1
Deprecated. -
copy$default$2
Deprecated. -
copy$default$3
Deprecated. -
copy$default$4
public boolean copy$default$4()Deprecated. -
productPrefix
Deprecated.- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()Deprecated.- Specified by:
productArityin interfacescala.Product
-
productElement
Deprecated.- Specified by:
productElementin interfacescala.Product
-
productIterator
Deprecated.- Specified by:
productIteratorin interfacescala.Product
-
canEqual
Deprecated.- Specified by:
canEqualin interfacescala.Equals
-
productElementName
Deprecated.- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
equals
Deprecated.
-