Record Class StreamerDependencies

java.lang.Object
java.lang.Record
energy.eddie.aiida.streamers.StreamerDependencies

public record StreamerDependencies(FailedToSendRepository failedToSendRepository, tools.jackson.databind.ObjectMapper mapper, SchemaFormatterRegistry schemaFormatterRegistry, reactor.core.publisher.Sinks.Many<PermissionCommand> commandSink, PermissionLatestRecordMap permissionLatestRecordMap, SecretsService secretsService) extends Record
Bundles the dependencies shared by every AiidaStreamer implementation. These are wired once by StreamerManager and forwarded to every streamer.
  • Constructor Details

    • StreamerDependencies

      public StreamerDependencies(FailedToSendRepository failedToSendRepository, tools.jackson.databind.ObjectMapper mapper, SchemaFormatterRegistry schemaFormatterRegistry, reactor.core.publisher.Sinks.Many<PermissionCommand> commandSink, PermissionLatestRecordMap permissionLatestRecordMap, SecretsService secretsService)
      Creates an instance of a StreamerDependencies record class.
      Parameters:
      failedToSendRepository - the value for the failedToSendRepository record component
      mapper - the value for the mapper record component
      schemaFormatterRegistry - the value for the schemaFormatterRegistry record component
      commandSink - the value for the commandSink record component
      permissionLatestRecordMap - the value for the permissionLatestRecordMap record component
      secretsService - the value for the secretsService record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • failedToSendRepository

      public FailedToSendRepository failedToSendRepository()
      Returns the value of the failedToSendRepository record component.
      Returns:
      the value of the failedToSendRepository record component
    • mapper

      public tools.jackson.databind.ObjectMapper mapper()
      Returns the value of the mapper record component.
      Returns:
      the value of the mapper record component
    • schemaFormatterRegistry

      public SchemaFormatterRegistry schemaFormatterRegistry()
      Returns the value of the schemaFormatterRegistry record component.
      Returns:
      the value of the schemaFormatterRegistry record component
    • commandSink

      public reactor.core.publisher.Sinks.Many<PermissionCommand> commandSink()
      Returns the value of the commandSink record component.
      Returns:
      the value of the commandSink record component
    • permissionLatestRecordMap

      public PermissionLatestRecordMap permissionLatestRecordMap()
      Returns the value of the permissionLatestRecordMap record component.
      Returns:
      the value of the permissionLatestRecordMap record component
    • secretsService

      public SecretsService secretsService()
      Returns the value of the secretsService record component.
      Returns:
      the value of the secretsService record component