Package velox.api.layer1.messages.plugin
Record Class DownloadPluginRequest
java.lang.Object
java.lang.Record
velox.api.layer1.messages.plugin.DownloadPluginRequest
- Record Components:
qualifier-Qualifierreturned byAvailablePluginsRequestlayer- plugin layer into which the plugin should be installedcallback- callback that receives outcomes reported directly by this request
- All Implemented Interfaces:
BmDownMessage<DownloadPluginRequest,Awaitable>
@DefaultQualifier(afu.org.checkerframework.checker.nullness.qual.NonNull.class)
public record DownloadPluginRequest(PluginQualifier qualifier, PluginLayer layer, DownloadPluginRequest.Callback callback)
extends Record
implements BmDownMessage<DownloadPluginRequest,Awaitable>
Request to download and install a plugin specified by its
qualifier into
the specified PluginLayer.
The qualifier should be obtained through
AvailablePluginsRequest and passed to this request directly.
Processing is asynchronous. The returned Awaitable can be used from a background thread
to wait until the request is processed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReceives outcomes reported directly by aDownloadPluginRequest.static interfaceDescribes an issue reported by aDownloadPluginRequest. -
Constructor Summary
ConstructorsConstructorDescriptionDownloadPluginRequest(PluginQualifier qualifier, PluginLayer layer, DownloadPluginRequest.Callback callback) Creates an instance of aDownloadPluginRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()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.layer()Returns the value of thelayerrecord component.Returns the value of thequalifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DownloadPluginRequest
public DownloadPluginRequest(PluginQualifier qualifier, PluginLayer layer, DownloadPluginRequest.Callback callback) Creates an instance of aDownloadPluginRequestrecord 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). -
qualifier
Returns the value of thequalifierrecord component.- Returns:
- the value of the
qualifierrecord component
-
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-