Package velox.api.layer1.messages.plugin
Record Class AvailablePluginsRequest
java.lang.Object
java.lang.Record
velox.api.layer1.messages.plugin.AvailablePluginsRequest
- All Implemented Interfaces:
BmDownMessage<AvailablePluginsRequest,Awaitable>
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public record AvailablePluginsRequest(PluginLayer pluginLayer, AvailablePluginsRequest.Callback callback, AvailablePluginsRequest.CacheMode cacheMode, AvailablePluginsRequest.TargetGroup targetGroup)
extends Record
implements BmDownMessage<AvailablePluginsRequest,Awaitable>
Request to get the list of available plugins for a specific plugin 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 enumstatic interfacestatic interfacestatic enum -
Constructor Summary
ConstructorsConstructorDescriptionAvailablePluginsRequest(PluginLayer pluginLayer, AvailablePluginsRequest.Callback callback, AvailablePluginsRequest.CacheMode cacheMode, AvailablePluginsRequest.TargetGroup targetGroup) Creates an instance of aAvailablePluginsRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheModerecord component.callback()Returns the value of thecallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.static AvailablePluginsRequestfresh(PluginLayer pluginLayer, AvailablePluginsRequest.TargetGroup targetGroup, AvailablePluginsRequest.Callback callback) static AvailablePluginsRequestfreshIfNoCache(PluginLayer pluginLayer, AvailablePluginsRequest.TargetGroup targetGroup, AvailablePluginsRequest.Callback callback) static AvailablePluginsRequestfromCache(PluginLayer pluginLayer, AvailablePluginsRequest.TargetGroup targetGroup, AvailablePluginsRequest.Callback callback) final inthashCode()Returns a hash code value for this object.Returns the value of thepluginLayerrecord component.Returns the value of thetargetGrouprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AvailablePluginsRequest
public AvailablePluginsRequest(PluginLayer pluginLayer, AvailablePluginsRequest.Callback callback, AvailablePluginsRequest.CacheMode cacheMode, AvailablePluginsRequest.TargetGroup targetGroup) Creates an instance of aAvailablePluginsRequestrecord class.- Parameters:
pluginLayer- the value for thepluginLayerrecord componentcallback- the value for thecallbackrecord componentcacheMode- the value for thecacheModerecord componenttargetGroup- the value for thetargetGrouprecord component
-
-
Method Details
-
fromCache
public static AvailablePluginsRequest fromCache(PluginLayer pluginLayer, AvailablePluginsRequest.TargetGroup targetGroup, AvailablePluginsRequest.Callback callback) -
fresh
public static AvailablePluginsRequest fresh(PluginLayer pluginLayer, AvailablePluginsRequest.TargetGroup targetGroup, AvailablePluginsRequest.Callback callback) -
freshIfNoCache
public static AvailablePluginsRequest freshIfNoCache(PluginLayer pluginLayer, AvailablePluginsRequest.TargetGroup targetGroup, AvailablePluginsRequest.Callback callback) -
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). -
pluginLayer
Returns the value of thepluginLayerrecord component.- Returns:
- the value of the
pluginLayerrecord component
-
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-
cacheMode
Returns the value of thecacheModerecord component.- Returns:
- the value of the
cacheModerecord component
-
targetGroup
Returns the value of thetargetGrouprecord component.- Returns:
- the value of the
targetGrouprecord component
-