Package org.apache.pekko
Class PekkoVersion$
java.lang.Object
org.apache.pekko.PekkoVersion$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PekkoVersion$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck that the version of Pekko is a specific patch version or higher and throw anUnsupportedPekkoVersionexception if the version requirement is not fulfilled.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
PekkoVersion$
public PekkoVersion$()
-
-
Method Details
-
require
Check that the version of Pekko is a specific patch version or higher and throw anUnsupportedPekkoVersionexception if the version requirement is not fulfilled.For example:
require("my-library", "2.5.4")would fail if used with Pekko 2.4.19 and 2.5.3, but succeed with 2.5.4 and 2.6.1- Parameters:
libraryName- The name of the library or component requiring the Pekko version, used in the error message.requiredVersion- Minimal version that this library works with
-