Record Class OpenAddonRequest
java.lang.Object
java.lang.Record
velox.api.layer1.messages.plugin.addon.OpenAddonRequest
- All Implemented Interfaces:
BmDownMessage<OpenAddonRequest,Awaitable>
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public record OpenAddonRequest(String alias, PluginQualifier qualifier, OpenAddonRequest.Callback callback)
extends Record
implements BmDownMessage<OpenAddonRequest,Awaitable>
Request to open an addon specified by its qualifier for a given alias.
Should be handled in asynchronous manner, you can block on returned
Note: opening an addon will trigger enabling of all addon's entrypoints for the given alias.
Awaitable
if you want to make sure the request is processed. Note: opening an addon will trigger enabling of all addon's entrypoints for the given alias.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionOpenAddonRequest(String alias, PluginQualifier qualifier, OpenAddonRequest.Callback callback) Creates an instance of aOpenAddonRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.callback()Returns the value of thecallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequalifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenAddonRequest
public OpenAddonRequest(String alias, PluginQualifier qualifier, OpenAddonRequest.Callback callback) Creates an instance of aOpenAddonRequestrecord class.- Parameters:
alias- the value for thealiasrecord componentqualifier- the value for thequalifierrecord componentcallback- the value for thecallbackrecord 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). -
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
qualifier
Returns the value of thequalifierrecord component.- Returns:
- the value of the
qualifierrecord component
-
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-