Record Class OpenAddonRequest
java.lang.Object
java.lang.Record
velox.api.layer1.messages.plugin.addon.OpenAddonRequest
- Record Components:
alias- alias for which the add-on should be openedqualifier-Qualifierof an active add-oncallback- callback that receives the processing result or an issue
- 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 active add-on for a given alias.
The qualifier must identify an active add-on and should be obtained
through AvailablePluginsRequest.
Processing is asynchronous. The returned Awaitable can be used to wait for completion
from a background thread.
Note: opening an add-on attempts to enable all of its entry points for the given alias.
Entry points that are not currently available are returned through
OpenAddonRequest.Callback.onSuccess(List, List) in the notFound list.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReceives the asynchronous result of anOpenAddonRequest.static interfaceDescribes why anOpenAddonRequestcould not be completed. -
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.
-
-
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
-