org.apache.pekko

Members list

Packages

== Commonly Used Patterns With Pekko ==

== Commonly Used Patterns With Pekko ==

This package is used as a collection point for usage patterns which involve actors, futures, etc. but are loosely enough coupled to (multiple of) them to present them separately from the core implementation. Currently supported are:

In Scala the recommended usage is to import the pattern from the package object:

import org.apache.pekko.pattern.ask

ask(actor, message) // use it directly
actor ask message   // use it by implicit conversion

For Java the patterns are available as static methods of the org.apache.pekko.pattern.Patterns class:

import static org.apache.pekko.pattern.Patterns.ask;

ask(actor, message);

Attributes

Type members

Classlikes

class ConfigurationException(message: String, cause: Throwable) extends PekkoException

This exception is thrown when Apache Pekko detects a problem with the provided configuration

This exception is thrown when Apache Pekko detects a problem with the provided configuration

Attributes

Source
PekkoException.scala
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
@DoNotInherit
sealed abstract class Done extends Serializable

Typically used together with Future to signal completion but there is no actual value completed. More clearly signals intent than Unit and is available both from Scala and Java (which Unit is not).

Typically used together with Future to signal completion but there is no actual value completed. More clearly signals intent than Unit and is available both from Scala and Java (which Unit is not).

Attributes

Companion
object
Source
Done.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object Done
case object Done extends Done

Attributes

Companion
class
Source
Done.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Done
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Done.type
sealed abstract class NotUsed

This type is used in generic type signatures wherever the actual value is of no importance. It is a combination of Scala’s Unit and Java’s Void, which both have different issues when used from the other language. An example use-case is the materialized value of a Pekko Stream for cases where no result shall be returned from materialization.

This type is used in generic type signatures wherever the actual value is of no importance. It is a combination of Scala’s Unit and Java’s Void, which both have different issues when used from the other language. An example use-case is the materialized value of a Pekko Stream for cases where no result shall be returned from materialization.

Attributes

Companion
object
Source
NotUsed.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NotUsed
case object NotUsed extends NotUsed

Attributes

Companion
class
Source
NotUsed.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class NotUsed
class Object
trait Matchable
class Any
Show all
Self type
NotUsed.type

Mix in this trait to suppress the StackTrace for the instance of the exception but not the cause, scala.util.control.NoStackTrace suppresses all the StackTraces.

Mix in this trait to suppress the StackTrace for the instance of the exception but not the cause, scala.util.control.NoStackTrace suppresses all the StackTraces.

Attributes

Source
PekkoException.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class PekkoException(message: String, cause: Throwable) extends RuntimeException, Serializable

Pekko base Exception.

Pekko base Exception.

Attributes

Source
PekkoException.scala
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
object PekkoVersion

Attributes

Source
PekkoVersion.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class UnsupportedPekkoVersion extends RuntimeException

Attributes

Source
PekkoVersion.scala
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object Version

Attributes

Source
Version.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Version.type