Package energy.eddie.aiida.streamers
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 Summary
ConstructorsConstructorDescriptionStreamerDependencies(FailedToSendRepository failedToSendRepository, tools.jackson.databind.ObjectMapper mapper, SchemaFormatterRegistry schemaFormatterRegistry, reactor.core.publisher.Sinks.Many<PermissionCommand> commandSink, PermissionLatestRecordMap permissionLatestRecordMap, SecretsService secretsService) Creates an instance of aStreamerDependenciesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Sinks.Many<PermissionCommand> Returns the value of thecommandSinkrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedToSendRepositoryrecord component.final inthashCode()Returns a hash code value for this object.tools.jackson.databind.ObjectMappermapper()Returns the value of themapperrecord component.Returns the value of thepermissionLatestRecordMaprecord component.Returns the value of theschemaFormatterRegistryrecord component.Returns the value of thesecretsServicerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aStreamerDependenciesrecord class.- Parameters:
failedToSendRepository- the value for thefailedToSendRepositoryrecord componentmapper- the value for themapperrecord componentschemaFormatterRegistry- the value for theschemaFormatterRegistryrecord componentcommandSink- the value for thecommandSinkrecord componentpermissionLatestRecordMap- the value for thepermissionLatestRecordMaprecord componentsecretsService- the value for thesecretsServicerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
failedToSendRepository
Returns the value of thefailedToSendRepositoryrecord component.- Returns:
- the value of the
failedToSendRepositoryrecord component
-
mapper
public tools.jackson.databind.ObjectMapper mapper()Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-
schemaFormatterRegistry
Returns the value of theschemaFormatterRegistryrecord component.- Returns:
- the value of the
schemaFormatterRegistryrecord component
-
commandSink
Returns the value of thecommandSinkrecord component.- Returns:
- the value of the
commandSinkrecord component
-
permissionLatestRecordMap
Returns the value of thepermissionLatestRecordMaprecord component.- Returns:
- the value of the
permissionLatestRecordMaprecord component
-
secretsService
Returns the value of thesecretsServicerecord component.- Returns:
- the value of the
secretsServicerecord component
-