Package akka.stream

Class ActorAttributes


  • public class ActorAttributes
    extends java.lang.Object
    Configures the dispatcher to be used by streams.

    Use factory method dispatcher(java.lang.String) to create instances.

    • Constructor Detail

      • ActorAttributes

        public ActorAttributes()
    • Method Detail

      • dispatcher

        public static Attributes dispatcher​(java.lang.String dispatcher)
        Specifies the name of the dispatcher. This also adds an async boundary.
        Parameters:
        dispatcher - (undocumented)
        Returns:
        (undocumented)
      • createLogLevels

        public static Attributes createLogLevels​(Logging.LogLevel onElement,
                                                 Logging.LogLevel onFinish,
                                                 Logging.LogLevel onFailure)
        Java API

        Configures log() operator log-levels to be used when logging. Logging a certain operation can be completely disabled by using Attributes.logLevelOff().

        Parameters:
        onElement - (undocumented)
        onFinish - (undocumented)
        onFailure - (undocumented)
        Returns:
        (undocumented)
      • createLogLevels

        public static Attributes createLogLevels​(Logging.LogLevel onElement)
        Java API

        Configures log() operator log-levels to be used when logging onElement. Logging a certain operation can be completely disabled by using Attributes.logLevelOff().

        Parameters:
        onElement - (undocumented)
        Returns:
        (undocumented)
      • logLevels

        public static Attributes logLevels​(Logging.LogLevel onElement,
                                           Logging.LogLevel onFinish,
                                           Logging.LogLevel onFailure)
        Configures log() operator log-levels to be used when logging. Logging a certain operation can be completely disabled by using LogLevels.Off.

        See Attributes.createLogLevels for Java API

        Parameters:
        onElement - (undocumented)
        onFinish - (undocumented)
        onFailure - (undocumented)
        Returns:
        (undocumented)
      • debugLogging

        public static Attributes debugLogging​(boolean enabled)
      • streamSubscriptionTimeout

        public static Attributes streamSubscriptionTimeout​(java.time.Duration timeout,
                                                           StreamSubscriptionTimeoutTerminationMode mode)
        Java API: Defines a timeout for stream subscription and what action to take when that hits.
        Parameters:
        timeout - (undocumented)
        mode - (undocumented)
        Returns:
        (undocumented)
      • outputBurstLimit

        public static Attributes outputBurstLimit​(int limit)
      • fuzzingMode

        public static Attributes fuzzingMode​(boolean enabled)
      • maxFixedBufferSize

        public static Attributes maxFixedBufferSize​(int size)
      • syncProcessingLimit

        public static Attributes syncProcessingLimit​(int limit)