Class NuggetAdminContract
java.lang.Object
org.j7m.middleware.operations.api.NuggetAdminContract
Stable public constants for the Phase 7.8 nugget administration contract.
The constants define the transport-neutral public contract used by CLI clients, deterministic JSON artifacts, tests, demos, and future adapters. They do not start listeners, select an HTTP shape, or grant admission or authorization. Implementations must reject unsupported request protocol versions before performing admission, authorization, provider calls, lifecycle mutation, control callbacks, or audit mutation.
This type is immutable and thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurationDefault client budget metadata when no budget is supplied.static final intDefault collection page size when callers omit a limit.static final StringStable JSON format name for normative fixtures and schema documents.static final intStable JSON schema/format version for Phase 7.8 artifacts.static final DurationMaximum client-supplied budget metadata retained in a request context.static final longMaximum count value for publiclongcount fields.static final DurationMaximum duration retained by public DTOs that render scalar milliseconds in JSON.static final longMaximum scalar millisecond duration representable by public JSON artifacts without overflow.static final intMaximum filter clauses accepted by public query DTOs.static final intMaximum aggregate metadata key and value content retained in UTF-8 bytes.static final intMaximum safe request metadata entries retained by public DTOs.static final intMaximum metadata key length in UTF-8 bytes.static final intMaximum metadata value length in UTF-8 bytes.static final longMaximum offset accepted by public query JSON artifacts before semantic offset-plus-limit validation.static final intMaximum collection page size accepted by public query DTOs.static final intMaximum sort clauses accepted by public query DTOs before tie-breaker insertion.static final intMaximum generic safe text length in UTF-8 bytes.static final intMaximum generic token length in UTF-8 bytes.static final intMaximum warning entries retained by public result headers.static final intMaximum safe warning length in UTF-8 bytes.static final intStable request/response protocol version for the public admin contract.static final StringStable generic payload type id for typed public DTOs without a narrower schema id. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrequireSupportedProtocol(int protocolVersion) Verifies that a caller requested the current public admin protocol.
-
Field Details
-
PROTOCOL_VERSION
public static final int PROTOCOL_VERSIONStable request/response protocol version for the public admin contract.- See Also:
-
JSON_FORMAT_NAME
Stable JSON format name for normative fixtures and schema documents.- See Also:
-
JSON_FORMAT_VERSION
public static final int JSON_FORMAT_VERSIONStable JSON schema/format version for Phase 7.8 artifacts.- See Also:
-
MAX_METADATA_ENTRIES
public static final int MAX_METADATA_ENTRIESMaximum safe request metadata entries retained by public DTOs.- See Also:
-
MAX_METADATA_KEY_UTF8_BYTES
public static final int MAX_METADATA_KEY_UTF8_BYTESMaximum metadata key length in UTF-8 bytes.- See Also:
-
MAX_METADATA_VALUE_UTF8_BYTES
public static final int MAX_METADATA_VALUE_UTF8_BYTESMaximum metadata value length in UTF-8 bytes.- See Also:
-
MAX_METADATA_AGGREGATE_UTF8_BYTES
public static final int MAX_METADATA_AGGREGATE_UTF8_BYTESMaximum aggregate metadata key and value content retained in UTF-8 bytes.- See Also:
-
MAX_TOKEN_UTF8_BYTES
public static final int MAX_TOKEN_UTF8_BYTESMaximum generic token length in UTF-8 bytes.- See Also:
-
MAX_TEXT_UTF8_BYTES
public static final int MAX_TEXT_UTF8_BYTESMaximum generic safe text length in UTF-8 bytes.- See Also:
-
MAX_WARNING_ENTRIES
public static final int MAX_WARNING_ENTRIESMaximum warning entries retained by public result headers.- See Also:
-
MAX_WARNING_UTF8_BYTES
public static final int MAX_WARNING_UTF8_BYTESMaximum safe warning length in UTF-8 bytes.- See Also:
-
MAX_PAGE_LIMIT
public static final int MAX_PAGE_LIMITMaximum collection page size accepted by public query DTOs.- See Also:
-
DEFAULT_PAGE_LIMIT
public static final int DEFAULT_PAGE_LIMITDefault collection page size when callers omit a limit.- See Also:
-
MAX_FILTERS
public static final int MAX_FILTERSMaximum filter clauses accepted by public query DTOs.- See Also:
-
MAX_SORTS
public static final int MAX_SORTSMaximum sort clauses accepted by public query DTOs before tie-breaker insertion.- See Also:
-
MAX_OFFSET
public static final long MAX_OFFSETMaximum offset accepted by public query JSON artifacts before semantic offset-plus-limit validation.- See Also:
-
MAX_COUNT
public static final long MAX_COUNTMaximum count value for publiclongcount fields.- See Also:
-
MAX_DURATION_MILLIS
public static final long MAX_DURATION_MILLISMaximum scalar millisecond duration representable by public JSON artifacts without overflow.- See Also:
-
MAX_DURATION
Maximum duration retained by public DTOs that render scalar milliseconds in JSON. -
MAX_CLIENT_BUDGET
Maximum client-supplied budget metadata retained in a request context. -
DEFAULT_CLIENT_BUDGET
Default client budget metadata when no budget is supplied. -
TYPED_PUBLIC_DTO_PAYLOAD_TYPE
Stable generic payload type id for typed public DTOs without a narrower schema id.- See Also:
-
-
Method Details
-
requireSupportedProtocol
public static void requireSupportedProtocol(int protocolVersion) Verifies that a caller requested the current public admin protocol.- Parameters:
protocolVersion- requested protocol version- Throws:
IllegalArgumentException- if the version is unsupported
-