Record Class RabbitMQQueue
java.lang.Object
java.lang.Record
pl.netroute.hussar.service.rabbitmq.api.RabbitMQQueue
public record RabbitMQQueue(@NonNull String name, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments)
extends Record
Custom type representing RabbitMQ queue.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRabbitMQQueue(@NonNull String name, boolean durable, boolean exclusive, boolean autoDelete, Map<String, Object> arguments) Creates an instance of aRabbitMQQueuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.booleanReturns the value of theautoDeleterecord component.builder()booleandurable()Returns the value of thedurablerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexclusiverecord component.final inthashCode()Returns a hash code value for this object.@NonNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RabbitMQQueue
public RabbitMQQueue(@NonNull @NonNull String name, boolean durable, boolean exclusive, boolean autoDelete, Map<String, Object> arguments) Creates an instance of aRabbitMQQueuerecord class.- Parameters:
name- the value for thenamerecord componentdurable- the value for thedurablerecord componentexclusive- the value for theexclusiverecord componentautoDelete- the value for theautoDeleterecord componentarguments- the value for theargumentsrecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
durable
public boolean durable()Returns the value of thedurablerecord component.- Returns:
- the value of the
durablerecord component
-
exclusive
public boolean exclusive()Returns the value of theexclusiverecord component.- Returns:
- the value of the
exclusiverecord component
-
autoDelete
public boolean autoDelete()Returns the value of theautoDeleterecord component.- Returns:
- the value of the
autoDeleterecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-