Record Class FeatureConfig
java.lang.Object
java.lang.Record
dev.tachyonmcp.core.server.config.FeatureConfig
- Record Components:
mode- enabled/disabled/auto-detected (defaultMode.AUTO)listChanged- whether to advertise list-changed notifications (defaultfalse)pageSize- default page size when a list request omits its limit (defaultPagination.DEFAULT_PAGE_SIZE)
Shared configuration for a single-list MCP capability (tools/prompts): enablement mode,
list-changed notifications, and default page size.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFeatureConfig(Mode mode, boolean listChanged, int pageSize) Creates an instance of aFeatureConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureConfig.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelistChangedrecord component.mode()Returns the value of themoderecord component.intpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FeatureConfig
Creates an instance of aFeatureConfigrecord class.- Parameters:
mode- the value for themoderecord componentlistChanged- the value for thelistChangedrecord componentpageSize- the value for thepageSizerecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
listChanged
public boolean listChanged()Returns the value of thelistChangedrecord component.- Returns:
- the value of the
listChangedrecord component
-
pageSize
public int pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-