Class JavaSerializer.CurrentSystem

java.lang.Object
scala.util.DynamicVariable<ExtendedActorSystem>
org.apache.pekko.serialization.JavaSerializer.CurrentSystem
Enclosing class:
JavaSerializer

public static final class JavaSerializer.CurrentSystem extends scala.util.DynamicVariable<ExtendedActorSystem>
  • Field Summary

    Fields inherited from class scala.util.DynamicVariable

    scala$util$DynamicVariable$$init
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <S> S
    withValue(ExtendedActorSystem value, Callable<S> callable)
    Java API: invoke the callable with the current system being set to the given value for this thread.

    Methods inherited from class scala.util.DynamicVariable

    toString, value, value_$eq, withValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CurrentSystem

      public CurrentSystem()
  • Method Details

    • withValue

      public <S> S withValue(ExtendedActorSystem value, Callable<S> callable)
      Java API: invoke the callable with the current system being set to the given value for this thread.

      Parameters:
      value - - the current value under the call to callable.call()
      callable - - the operation to be performed
      Returns:
      the result of callable.call()