Package velox.api.layer1.messages.plugin
Record Class DownloadPluginRequest
java.lang.Object
java.lang.Record
velox.api.layer1.messages.plugin.DownloadPluginRequest
- 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 layer.
Should be handled in asynchronous manner, you can block on returned
Awaitable
if you want to make sure the request is processed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
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.- Parameters:
qualifier- the value for thequalifierrecord componentlayer- the value for thelayerrecord 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). -
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
-