org.apache.pekko.remote
Members list
Type members
Classlikes
Extension that holds a uid that is assigned as a random Long or Int depending on which version of remoting that is used.
Extension that holds a uid that is assigned as a random Long or Int depending on which version of remoting that is used.
The uid is intended to be used together with an pekko.actor.Address to be able to distinguish restarted actor system using the same host and port.
Attributes
- Companion
- class
- Source
- AddressUidExtension.scala
- Supertypes
-
trait ExtensionIdProvidertrait ExtensionId[AddressUidExtension]class Objecttrait Matchableclass Any
- Self type
-
AddressUidExtension.type
Attributes
- Companion
- object
- Source
- AddressUidExtension.scala
- Supertypes
Extension provides access to bound addresses.
Extension provides access to bound addresses.
Attributes
- Companion
- class
- Source
- BoundAddressesExtension.scala
- Supertypes
- Self type
Attributes
- Companion
- object
- Source
- BoundAddressesExtension.scala
- Supertypes
Implementation of failure detector using an absolute timeout of missing heartbeats to trigger unavailability.
Implementation of failure detector using an absolute timeout of missing heartbeats to trigger unavailability.
isAvailable will return false if there is no heartbeat within the duration heartbeatInterval + acceptableHeartbeatPause.
Value parameters
- acceptableHeartbeatPause
-
Duration corresponding to number of potentially lost/delayed heartbeats that will be accepted before considering it to be an anomaly.
- clock
-
The clock, returning current time in milliseconds, but can be faked for testing purposes. It is only used for measuring intervals (duration).
- heartbeatInterval
-
Expected heartbeat interval
Attributes
- Source
- DeadlineFailureDetector.scala
- Supertypes
A lock-less thread-safe implementation of org.apache.pekko.remote.FailureDetectorRegistry.
A lock-less thread-safe implementation of org.apache.pekko.remote.FailureDetectorRegistry.
Value parameters
- detectorFactory
-
By-name parameter that returns the failure detector instance to be used by a newly registered resource
Attributes
- Source
- DefaultFailureDetectorRegistry.scala
- Supertypes
A failure detector must be a thread-safe mutable construct that registers heartbeat events of a resource and is able to decide the availability of that monitored resource.
A failure detector must be a thread-safe mutable construct that registers heartbeat events of a resource and is able to decide the availability of that monitored resource.
Attributes
- Companion
- object
- Source
- FailureDetector.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DeadlineFailureDetector
Attributes
- Companion
- trait
- Source
- FailureDetector.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FailureDetector.type
Interface for a registry of Pekko failure detectors. New resources are implicitly registered when heartbeat is first called with the resource given as parameter.
Interface for a registry of Pekko failure detectors. New resources are implicitly registered when heartbeat is first called with the resource given as parameter.
type parameter A:
- The type of the key that identifies a resource to be monitored by a failure detector
Attributes
- Source
- FailureDetectorRegistry.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultFailureDetectorRegistry[A]
INTERNAL API
INTERNAL API
Attributes
- Source
- RemoteDaemon.scala
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Implementation of 'The Phi Accrual Failure Detector' by Hayashibara et al. as defined in their paper: [https://oneofus.la/have-emacs-will-hack/files/HDY04.pdf]
Implementation of 'The Phi Accrual Failure Detector' by Hayashibara et al. as defined in their paper: [https://oneofus.la/have-emacs-will-hack/files/HDY04.pdf]
The suspicion level of failure is given by a value called φ (phi). The basic idea of the φ failure detector is to express the value of φ on a scale that is dynamically adjusted to reflect current network conditions. A configurable threshold is used to decide if φ is considered to be a failure.
The value of φ is calculated as:
φ = -log10(1 - F(timeSinceLastHeartbeat)
where F is the cumulative distribution function of a normal distribution with mean and standard deviation estimated from historical heartbeat inter-arrival times.
Value parameters
- acceptableHeartbeatPause
-
Duration corresponding to number of potentially lost/delayed heartbeats that will be accepted before considering it to be an anomaly. This margin is important to be able to survive sudden, occasional, pauses in heartbeat arrivals, due to for example garbage collect or network drop.
- clock
-
The clock, returning current time in milliseconds, but can be faked for testing purposes. It is only used for measuring intervals (duration).
- firstHeartbeatEstimate
-
Bootstrap the stats with heartbeats that corresponds to to this duration, with a with rather high standard deviation (since environment is unknown in the beginning)
- maxSampleSize
-
Number of samples to use for calculation of mean and standard deviation of inter-arrival times.
- minStdDeviation
-
Minimum standard deviation to use for the normal distribution used when calculating phi. Too low standard deviation might result in too much sensitivity for sudden, but normal, deviations in heartbeat inter arrival times.
- threshold
-
A low threshold is prone to generate many wrong suspicions but ensures a quick detection in the event of a real crash. Conversely, a high threshold generates fewer mistakes but needs more time to detect actual crashes
Attributes
- Source
- PhiAccrualFailureDetector.scala
- Supertypes
This is public with the purpose to document the used markers and properties of log events. No guarantee that it will remain binary compatible, but the marker names and properties are considered public API and will not be changed without notice.
This is public with the purpose to document the used markers and properties of log events. No guarantee that it will remain binary compatible, but the marker names and properties are considered public API and will not be changed without notice.
Attributes
- Source
- RemoteLogMarker.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RemoteLogMarker.type
Attributes
- Source
- RemoteDeployer.scala
- Supertypes
Attributes
- Source
- RemoteSettings.scala
- Supertypes
-
class Objecttrait Matchableclass Any
RemoteTransportException represents a general failure within a RemoteTransport, such as inability to start, wrong configuration etc.
RemoteTransportException represents a general failure within a RemoteTransport, such as inability to start, wrong configuration etc.
Attributes
- Source
- RemoteTransport.scala
- Supertypes
-
class PekkoExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
RemoteTransportException without stack trace.
RemoteTransportException without stack trace.
Attributes
- Source
- RemoteTransport.scala
- Supertypes
-
trait NoStackTraceclass RemoteTransportExceptionclass PekkoExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Source
- UniqueAddress.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Ordered[UniqueAddress]trait Comparable[UniqueAddress]class Objecttrait Matchableclass AnyShow all
Deprecated classlikes
Class representing an acknowledgement with selective negative acknowledgements.
Class representing an acknowledgement with selective negative acknowledgements.
Value parameters
- cumulativeAck
-
Represents the highest sequence number received.
- nacks
-
Set of sequence numbers between the last delivered one and cumulativeAck that has been not yet received.
Attributes
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
Implements an immutable receive buffer that buffers incoming messages until they can be safely delivered. This buffer works together with a pekko.remote.AckedSendBuffer on the sender() side.
Implements an immutable receive buffer that buffers incoming messages until they can be safely delivered. This buffer works together with a pekko.remote.AckedSendBuffer on the sender() side.
Value parameters
- buf
-
Buffer of messages that are waiting for delivery
- cumulativeAck
-
The highest sequence number received so far.
- lastDelivered
-
Sequence number of the last message that has been delivered.
Attributes
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
Implements an immutable resend buffer that buffers messages until they have been acknowledged. Properly removes messages when an ack is received. This buffer works together with pekko.remote.AckedReceiveBuffer on the receiving end.
Implements an immutable resend buffer that buffers messages until they have been acknowledged. Properly removes messages when an ack is received. This buffer works together with pekko.remote.AckedReceiveBuffer on the receiving end.
Value parameters
- capacity
-
Maximum number of messages the buffer is willing to accept. If reached pekko.remote.ResendBufferCapacityReachedException is thrown.
- maxSeq
-
The maximum sequence number that has been stored in this buffer. Messages having lower sequence number will be not stored but rejected with java.lang.IllegalArgumentException
- nacked
-
Sequence of messages that has been explicitly negative acknowledged.
- nonAcked
-
Sequence of messages that has not yet been acknowledged.
Attributes
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait AssociationEventtrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait AssociationEventtrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
- Known subtypes
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait AssociationEventtrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all
The uniqueAddress was quarantined but it was due to normal shutdown or cluster leaving/exiting.
The uniqueAddress was quarantined but it was due to normal shutdown or cluster leaving/exiting.
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HasSequenceNumber.type
Messages that are to be buffered in pekko.remote.AckedSendBuffer or pekko.remote.AckedReceiveBuffer has to implement this interface to provide the sequence needed by the buffers.
Messages that are to be buffered in pekko.remote.AckedSendBuffer or pekko.remote.AckedReceiveBuffer has to implement this interface to provide the sequence needed by the buffers.
Attributes
- Companion
- object
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
- Self type
-
QuarantinedEvent.type
Attributes
- Companion
- object
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
-
trait AssociationEventclass AssociatedEventclass AssociationErrorEventclass DisassociatedEventclass QuarantinedEventclass RemotingErrorEventclass RemotingListenEventobject RemotingShutdownEvent.typeShow all
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
- Self type
Attributes
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
-
class PekkoExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
-
class PekkoExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Deprecated
- true
- Source
- AckedDelivery.scala
- Supertypes
- Self type
-
SeqNo.type
Implements a 64 bit sequence number with proper wrap-around ordering.
Attributes
- Deprecated
- true
- Source
- RemotingLifecycleEvent.scala
- Supertypes
-
trait Producttrait Equalstrait RemotingLifecycleEventtrait Serializableclass Objecttrait Matchableclass AnyShow all