Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept() - Method in class org.nanonative.nano.services.http.model.HttpObject
- accept(String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- accept(ContentType...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- ACCEPT - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCEPT_CHARSET - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCEPT_ENCODING - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCEPT_LANGUAGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCEPT_RANGES - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- acceptEncoding() - Method in class org.nanonative.nano.services.http.model.HttpObject
- acceptEncodings() - Method in class org.nanonative.nano.services.http.model.HttpObject
- acceptLanguage() - Method in class org.nanonative.nano.services.http.model.HttpObject
- acceptLanguages() - Method in class org.nanonative.nano.services.http.model.HttpObject
- acceptLanguages(Locale...) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the accepted languages based on a list where the order indicates priority.
- accepts() - Method in class org.nanonative.nano.services.http.model.HttpObject
- ACCESS_CONTROL_ALLOW_CREDENTIALS - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCESS_CONTROL_ALLOW_HEADERS - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCESS_CONTROL_ALLOW_METHODS - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCESS_CONTROL_ALLOW_ORIGIN - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCESS_CONTROL_MAX_AGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCESS_CONTROL_REQUEST_HEADERS - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ACCESS_CONTROL_REQUEST_METHOD - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- acknowledge() - Method in class org.nanonative.nano.helper.event.model.Event
- acknowledge(Runnable) - Method in class org.nanonative.nano.helper.event.model.Event
- activeCarrierThreads() - Static method in class org.nanonative.nano.core.model.NanoThread
- activeNanoThreadCount - Static variable in class org.nanonative.nano.core.model.NanoThread
- activeNanoThreads() - Static method in class org.nanonative.nano.core.model.NanoThread
- addConfig(Context, Object, Object) - Static method in class org.nanonative.nano.helper.NanoUtils
- addHandlerIfAbsent(Handler) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- addJsonEntries(Map<String, String>, Object[]) - Method in class org.nanonative.nano.helper.logger.logic.LogFormatterJson
-
Adds additional key-value pairs to the map.
- addMetricsEndpoint(Event) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- address() - Method in class org.nanonative.nano.services.http.HttpService
- address() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the
InetAddressfrom theHttpExchange. - AGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ALL - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- ALLOW - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- APP_HELP - Static variable in class org.nanonative.nano.core.model.Context
- APP_PARAMS - Static variable in class org.nanonative.nano.core.model.Context
- APPLICATION_ATOM_XML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_FORM_URLENCODED - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_JSON - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_OCTET_STREAM - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_PDF - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_PROBLEM_JSON - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_PROBLEM_XML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_SOAP_XML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_SVG_XML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_XHTML_XML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- APPLICATION_XML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- applyCustomFormat(String, Object...) - Static method in class org.nanonative.nano.helper.logger.logic.LogFormatterConsole
-
Replacing placeholders with parameters.
- asyncFromPool(Supplier<Context>) - Method in class org.nanonative.nano.core.NanoThreads
-
Creates a
Schedulerfrom the thread pool. - AUDIO_MPEG - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- AUTHORIZATION - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- authToken() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Parses and returns any authentication token found in the
HttpHeaders.AUTHORIZATIONheader. - authToken(int) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Parses and returns any authentication token found in the
HttpHeaders.AUTHORIZATIONheader. - authTokens() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Parses and returns any authentication token found in the
HttpHeaders.AUTHORIZATIONheader. - await() - Method in class org.nanonative.nano.core.model.NanoThread
- await(Runnable) - Method in class org.nanonative.nano.core.model.NanoThread
B
- body - Variable in class org.nanonative.nano.services.http.model.HttpObject
- body() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Returns a string representation of the body, decoded using the
CharsetfromHttpObject.encoding()specified in theHttpHeaders.CONTENT_TYPEheader. - body(byte[]) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpObject.body()from aTypeInfoobject. - body(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpObject.body()from aTypeInfoobject, encoding it into bytes using theCharsetfromHttpObject.encoding(). - body(Collection<?>) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpObject.body()from aCollectionobject, encoding it into JSON format using theCharsetfromHttpObject.encoding(). - body(Map<?, ?>) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpObject.body()from aMapobject, encoding it into JSON format using theCharsetfromHttpObject.encoding(). - bodyAsJson() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Returns a string representation of the
HttpObject.body(), decoded using theCharsetfromHttpObject.encoding()specified in theHttpHeaders.CONTENT_TYPEheader. - bodyAsString() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Returns a string representation of the
HttpObject.body(), decoded using theCharsetfromHttpObject.encoding()specified in theHttpHeaders.CONTENT_TYPEheader. - bodyAsXml() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Returns a string representation of the
HttpObject.body(), decoded using theCharsetfromHttpObject.encoding()specified in theHttpHeaders.CONTENT_TYPEheader. - bodyPublisher() - Method in class org.nanonative.nano.services.http.model.HttpObject
- bodyT(TypeInfo<?>) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpObject.body()from aTypeInfoobject, encoding it into JSON format using theCharsetfromHttpObject.encoding(). - broadcastEvent(int, Object) - Method in class org.nanonative.nano.core.model.Context
-
Broadcasts an event of the specified type with the provided payload to all listeners within this context without expecting a response.
- broadcastEvent(int, Object, Consumer<Object>) - Method in class org.nanonative.nano.core.model.Context
-
Broadcasts an event of the specified type with the provided payload to all listeners within this context, expecting a response that is handled by the provided responseListener.
- broadcastEventReturn(int, Object) - Method in class org.nanonative.nano.core.model.Context
-
Broadcasts an event of the specified type with the provided payload to all listeners within this context without expecting a response.
- broadcastEventReturn(int, Object, Consumer<Object>) - Method in class org.nanonative.nano.core.model.Context
-
Broadcasts an event of the specified type with the provided payload to all listeners within this context, expecting a response that is handled by the provided responseListener.
C
- cache - Variable in class org.nanonative.nano.helper.event.model.Event
- cache() - Method in class org.nanonative.nano.helper.event.model.Event
- cache(Object, Object) - Method in class org.nanonative.nano.helper.event.model.Event
- CACHE_CONTROL - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- callerInfo(Class<?>) - Static method in class org.nanonative.nano.helper.NanoUtils
- callerInfoStr(Class<?>) - Static method in class org.nanonative.nano.helper.NanoUtils
- channelId - Variable in class org.nanonative.nano.helper.event.model.Event
- channelId() - Method in class org.nanonative.nano.helper.event.model.Event
- channelId(int) - Method in class org.nanonative.nano.helper.event.model.Event
- channelIdOf(String) - Method in class org.nanonative.nano.core.model.Context
-
Attempts to find the ID of an event type based on its name.
- channelIdOrg() - Method in class org.nanonative.nano.helper.event.model.Event
- checkQueueSizeAndWarn() - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- circuitBreaker(int, HttpRequest, HttpObject, Consumer<HttpObject>, Throwable) - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Implements a circuit breaker pattern to handle retries for HTTP requests in case of failures.
- cleanUps(Event) - Method in class org.nanonative.nano.core.Nano
- client - Variable in class org.nanonative.nano.services.http.logic.HttpClient
- client() - Method in class org.nanonative.nano.services.http.logic.HttpClient
- computedHeaders(boolean) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Constructs and returns a map of HTTP headers to be included in an HTTP response.
- CONFIG_ENV_PROD - Static variable in class org.nanonative.nano.core.model.Context
- CONFIG_HTTP_CLIENT_CON_TIMEOUT_MS - Static variable in class org.nanonative.nano.services.http.HttpService
- CONFIG_HTTP_CLIENT_FOLLOW_REDIRECTS - Static variable in class org.nanonative.nano.services.http.HttpService
- CONFIG_HTTP_CLIENT_MAX_RETRIES - Static variable in class org.nanonative.nano.services.http.HttpService
- CONFIG_HTTP_CLIENT_READ_TIMEOUT_MS - Static variable in class org.nanonative.nano.services.http.HttpService
- CONFIG_HTTP_CLIENT_VERSION - Static variable in class org.nanonative.nano.services.http.HttpService
- CONFIG_KEYS - Static variable in class org.nanonative.nano.core.NanoBase
- CONFIG_LOG_FORMATTER - Static variable in class org.nanonative.nano.core.model.Context
- CONFIG_LOG_LEVEL - Static variable in class org.nanonative.nano.core.model.Context
- CONFIG_LOG_QUEUE_SIZE - Static variable in class org.nanonative.nano.core.model.Context
- CONFIG_METRIC_SERVICE_BASE_PATH - Static variable in class org.nanonative.nano.services.metric.logic.MetricService
- CONFIG_METRIC_SERVICE_DYNAMO_PATH - Static variable in class org.nanonative.nano.services.metric.logic.MetricService
- CONFIG_METRIC_SERVICE_INFLUX_PATH - Static variable in class org.nanonative.nano.services.metric.logic.MetricService
- CONFIG_METRIC_SERVICE_PROMETHEUS_PATH - Static variable in class org.nanonative.nano.services.metric.logic.MetricService
- CONFIG_METRIC_SERVICE_WAVEFRONT_PATH - Static variable in class org.nanonative.nano.services.metric.logic.MetricService
- CONFIG_OOM_SHUTDOWN_THRESHOLD - Static variable in class org.nanonative.nano.core.model.Context
- CONFIG_PARALLEL_SHUTDOWN - Static variable in class org.nanonative.nano.core.model.Context
- CONFIG_PROFILES - Static variable in class org.nanonative.nano.core.model.Context
- CONFIG_SERVICE_HTTP_PORT - Static variable in class org.nanonative.nano.services.http.HttpService
- CONFIG_THREAD_POOL_TIMEOUT_MS - Static variable in class org.nanonative.nano.core.model.Context
- configDescriptionOf(String) - Static method in class org.nanonative.nano.helper.config.ConfigRegister
-
Retrieves the description of a registered configuration key.
- ConfigRegister - Class in org.nanonative.nano.helper.config
-
Utility class for registering and retrieving configuration descriptions.
- configure(TypeMap) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- CONNECTION - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- connectionTimeoutMs() - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Returns the connection timeout in milliseconds configured for this
HttpClient. - containsHeader(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Checks if a specified header exists in the
HttpObject. - containsQueryParam(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Checks if a specific query parameter exists in the
HttpObject. - CONTENT_ENCODING - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- CONTENT_LANGUAGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- CONTENT_LENGTH - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- CONTENT_LOCATION - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- CONTENT_MD5 - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- CONTENT_RANGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- CONTENT_TYPE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- contentEncoding() - Method in class org.nanonative.nano.services.http.model.HttpObject
- contentEncodings() - Method in class org.nanonative.nano.services.http.model.HttpObject
- contentType() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the first content types specified in the
HttpHeaders.CONTENT_TYPEheader. - contentType(String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpHeaders.CONTENT_TYPEheader without specifying aCharset. - contentType(Charset, String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpHeaders.CONTENT_TYPEheader with specifying aCharset. - contentType(Charset, ContentType...) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpHeaders.CONTENT_TYPEheader with specifying aCharset. - contentType(ContentType...) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpHeaders.CONTENT_TYPEheader without specifying aCharset. - ContentType - Enum Class in org.nanonative.nano.services.http.model
- contentTypes() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves a list of all content types specified in the
HttpHeaders.CONTENT_TYPEheader. - context - Variable in class org.nanonative.nano.core.model.NanoThread
- context - Variable in class org.nanonative.nano.core.NanoBase
- context - Variable in class org.nanonative.nano.helper.event.model.Event
- context - Variable in class org.nanonative.nano.services.http.HttpService
- context - Variable in class org.nanonative.nano.services.http.logic.HttpClient
- context() - Method in class org.nanonative.nano.core.model.NanoThread
- context() - Method in record class org.nanonative.nano.core.model.Unhandled
-
Returns the value of the
contextrecord component. - context() - Method in class org.nanonative.nano.core.Nano
-
Returns the root
Context. - context() - Method in class org.nanonative.nano.helper.event.model.Event
- context() - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Returns the context used for configuring this
HttpClient. - context(Class<?>) - Method in class org.nanonative.nano.core.Nano
-
Creates a
ContextwithNanoLoggerfor the specified class. - Context - Class in org.nanonative.nano.core.model
- Context(Class<?>) - Constructor for class org.nanonative.nano.core.model.Context
- Context(Context, Class<?>) - Constructor for class org.nanonative.nano.core.model.Context
- Context(Context, Class<?>, boolean) - Constructor for class org.nanonative.nano.core.model.Context
- CONTEXT_CLASS_KEY - Static variable in class org.nanonative.nano.core.model.Context
- CONTEXT_HTTP_CLIENT_KEY - Static variable in class org.nanonative.nano.services.http.model.HttpObject
- CONTEXT_LOG_QUEUE_KEY - Static variable in class org.nanonative.nano.core.model.Context
- CONTEXT_LOGGER_KEY - Static variable in class org.nanonative.nano.core.model.Context
- CONTEXT_NANO_KEY - Static variable in class org.nanonative.nano.core.model.Context
- CONTEXT_PARENT_KEY - Static variable in class org.nanonative.nano.core.model.Context
- CONTEXT_TRACE_ID_KEY - Static variable in class org.nanonative.nano.core.model.Context
- contextEmpty(Class<?>) - Method in class org.nanonative.nano.core.Nano
-
Creates an empty
ContextwithNanoLoggerfor the specified class. - convertHeaders(Map<String, ?>) - Static method in class org.nanonative.nano.services.http.model.HttpObject
-
Converts a map of simple header values to a
TypeMapof headers. - corsResponse() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObject. - corsResponse(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObjectwith CORS handling. - corsResponse(String, String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObjectwith CORS handling. - corsResponse(String, String, String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObjectwith CORS handling. - corsResponse(String, String, String, int) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObjectwith CORS handling. - corsResponse(String, String, String, int, boolean) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObjectwith CORS handling. - counter(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- counter(String, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- COUNTER - Enum constant in enum class org.nanonative.nano.services.metric.model.MetricType
- counterIncrement(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- counterIncrement(String, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- counters() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- createdAtMs - Variable in class org.nanonative.nano.core.model.Service
- createdAtMs - Variable in class org.nanonative.nano.core.NanoBase
- createdAtMs - Variable in class org.nanonative.nano.helper.event.model.Event
- createdAtMs() - Method in class org.nanonative.nano.core.model.Service
- createdAtMs() - Method in class org.nanonative.nano.core.NanoBase
-
Retrieves the creation timestamp of the instance.
- createdAtMs() - Method in class org.nanonative.nano.helper.event.model.Event
- createRootContext(Class<?>) - Static method in class org.nanonative.nano.core.model.Context
-
Creates a new root context with a unique trace ID.
D
- DATE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- dateFormat - Variable in class org.nanonative.nano.helper.logger.logic.LogFormatterConsole
- dateFormat - Variable in class org.nanonative.nano.helper.logger.logic.LogFormatterJson
- DAV - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- debug(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- debug(Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- DEBUG - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- decodeDeflate(byte[]) - Static method in class org.nanonative.nano.helper.NanoUtils
- decodeGzip(byte[]) - Static method in class org.nanonative.nano.helper.NanoUtils
- decodeZip(byte[]) - Static method in class org.nanonative.nano.helper.NanoUtils
- DEFAULT_LOG_ERROR_HANDLER - Static variable in class org.nanonative.nano.helper.logger.logic.NanoLogger
- DEFAULT_LOG_FORMATTER - Static variable in class org.nanonative.nano.helper.logger.logic.NanoLogger
- DEFAULT_LOG_INFO_HANDLER - Static variable in class org.nanonative.nano.helper.logger.logic.NanoLogger
- DELETE - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- DEPTH - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- DESTINATION - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- displayHelpMenu() - Method in class org.nanonative.nano.core.NanoBase
-
Displays a help menu with available configuration keys and their descriptions and exits.
- dynamoPath - Variable in class org.nanonative.nano.services.metric.logic.MetricService
- dynamoPath() - Method in class org.nanonative.nano.services.metric.logic.MetricService
- dynatrace() - Method in class org.nanonative.nano.services.metric.model.MetricCache
E
- encodeBody(byte[], String) - Method in class org.nanonative.nano.services.http.HttpService
- encodeDeflate(byte[]) - Static method in class org.nanonative.nano.helper.NanoUtils
- encodeGzip(byte[]) - Static method in class org.nanonative.nano.helper.NanoUtils
- encoding() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the character set encoding from the
HttpHeaders.CONTENT_TYPEheader. - equals(Object) - Method in record class org.nanonative.nano.core.model.Unhandled
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.nanonative.nano.services.metric.model.MetricCache.Metric
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Indicates whether some other object is "equal to" this one.
- error - Variable in class org.nanonative.nano.helper.event.model.Event
- error() - Method in class org.nanonative.nano.helper.event.model.Event
- error(Throwable) - Method in class org.nanonative.nano.helper.event.model.Event
- error(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- error(Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- ERROR - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- estimateMetricCacheSize() - Method in class org.nanonative.nano.services.metric.logic.MetricService
- ETAG - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- Event - Class in org.nanonative.nano.helper.event.model
- Event(int, Context, Object, Consumer<Object>) - Constructor for class org.nanonative.nano.helper.event.model.Event
-
Constructs an instance of the Event class with specified type, context, payload, and response listener.
- EVENT_APP_ERROR - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_HEARTBEAT - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_OOM - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_SCHEDULER_REGISTER - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_SCHEDULER_UNREGISTER - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_SERVICE_REGISTER - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_SERVICE_UNREGISTER - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_SHUTDOWN - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_START - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_APP_UNHANDLED - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_CONFIG_CHANGE - Static variable in class org.nanonative.nano.core.model.Context
- EVENT_HTTP_REQUEST - Static variable in class org.nanonative.nano.services.http.HttpService
- EVENT_HTTP_REQUEST_UNHANDLED - Static variable in class org.nanonative.nano.services.http.HttpService
- EVENT_ID_COUNTER - Static variable in class org.nanonative.nano.core.NanoBase
- EVENT_METRIC_UPDATE - Static variable in class org.nanonative.nano.services.metric.logic.MetricService
- EVENT_ORIGINAL_CHANNEL_ID - Static variable in class org.nanonative.nano.helper.event.model.Event
- EVENT_TYPES - Static variable in class org.nanonative.nano.core.NanoBase
- EventChannelRegister - Class in org.nanonative.nano.helper.event
- eventCount - Variable in class org.nanonative.nano.core.NanoBase
- eventCount() - Method in class org.nanonative.nano.core.NanoBase
- eventIdOf(String) - Static method in class org.nanonative.nano.helper.event.EventChannelRegister
-
Attempts to find the ID of an event type based on its name.
- eventNameOf(int) - Method in class org.nanonative.nano.core.model.Context
-
Retrieves the name of an event type given its ID.
- eventNameOf(int) - Static method in class org.nanonative.nano.helper.event.EventChannelRegister
-
Retrieves the name of an event type given its ID.
- exception() - Method in record class org.nanonative.nano.core.model.Unhandled
-
Returns the value of the
exceptionrecord component. - exchange - Variable in class org.nanonative.nano.services.http.model.HttpObject
- exchange() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Returns the associated
HttpExchangefor thisHttpObject. - executeScheduler(Supplier<Context>, ExRunnable, Scheduler, boolean) - Method in class org.nanonative.nano.core.NanoThreads
- exit(NanoLogger, int) - Method in class org.nanonative.nano.core.Nano
- EXPECT - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- expectContinue() - Method in class org.nanonative.nano.services.http.model.HttpObject
- EXPIRES - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ExRunnable - Interface in org.nanonative.nano.helper
- extractKeyValuesFromMessage(Map<String, String>, String, Object[]) - Method in class org.nanonative.nano.helper.logger.logic.LogFormatterJson
-
Extracts key-value pairs from the message and stores them in a map.
F
- failure() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the failure exception from the HTTP headers, if present.
- failure(int, Throwable) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Stores a failure exception within the HTTP headers.
- fatal(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- fatal(Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- FATAL - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- followRedirects() - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Returns whether this
HttpClientfollows redirects. - format(LogRecord) - Method in class org.nanonative.nano.helper.logger.logic.LogFormatterConsole
-
Format a LogRecord into a string representation.
- format(LogRecord) - Method in class org.nanonative.nano.helper.logger.logic.LogFormatterJson
-
Formats a log record into a JSON string.
- formatDuration(long) - Static method in class org.nanonative.nano.helper.NanoUtils
- formatLoggerName(LogRecord) - Static method in class org.nanonative.nano.helper.logger.logic.LogFormatterConsole
- formatter() - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- formatter(Formatter) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- FROM - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- fromExchange(Function<HttpExchange, T>) - Method in class org.nanonative.nano.services.http.model.HttpObject
- fromValue(String) - Static method in enum class org.nanonative.nano.services.http.model.ContentType
G
- gauge(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- gauge(String, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- GAUGE - Enum constant in enum class org.nanonative.nano.services.metric.model.MetricType
- gauges() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- gaugeSet(String, double) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- gaugeSet(String, double, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- generateNanoName(String) - Static method in class org.nanonative.nano.helper.NanoUtils
- generateUniqueKey(String, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- get() - Method in class org.nanonative.nano.helper.LockedBoolean
-
Retrieves the current state with thread safety.
- GET - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- getLogFormatter(String) - Static method in class org.nanonative.nano.helper.logger.LogFormatRegister
- getLogFormatter(String, Supplier<Formatter>) - Static method in class org.nanonative.nano.helper.logger.LogFormatRegister
- getThreadName(ExecutorService) - Static method in class org.nanonative.nano.helper.NanoUtils
- gracefulShutdown(NanoLogger) - Method in class org.nanonative.nano.core.Nano
- guessContentType(HttpObject, byte[]) - Static method in class org.nanonative.nano.services.http.model.HttpObject
H
- handleJavaError(Supplier<Context>, Throwable) - Static method in class org.nanonative.nano.helper.NanoUtils
-
Handles a Java error by logging it and shutting down the application.
- hasAccept(String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAccept(ContentType...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptEncoding(String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptFormUrlEncoded() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptGif() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptHtml() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptJpeg() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptJson() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptMp4() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptMpeg() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptMultiPartFormData() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptOctetStream() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptPdf() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptPlainText() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptPng() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptXml() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasAcceptXmlSoap() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentEncoding(String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentType(String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentType(ContentType) - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentType(ContentType...) - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeFormUrlEncoded() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeGif() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeHtml() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeJpeg() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeJson() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeMp4() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeMpeg() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeMultiPartFormData() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeOctetStream() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypePdf() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypePlainText() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypePng() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeXml() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasContentTypeXmlSoap() - Method in class org.nanonative.nano.services.http.model.HttpObject
- hasFailed() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Checks if the HTTP response headers contain an entry indicating an exception or failure.
- hashCode() - Method in record class org.nanonative.nano.core.model.Unhandled
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.nanonative.nano.services.metric.model.MetricCache.Metric
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Returns a hash code value for this object.
- hasText(String) - Static method in class org.nanonative.nano.helper.NanoUtils
- HEAD - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- header(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the value of a specified header.
- header(String, Object) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Adds or replaces a header in the HTTP headers map.
- headerMap() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Returns the HTTP headers map.
- headerMap(Headers) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets Http headers.
- headerMap(Map<String, ?>) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets Http headers.
- headers - Variable in class org.nanonative.nano.services.http.model.HttpObject
- headers() - Method in class org.nanonative.nano.services.http.model.HttpObject
- heapMemoryUsage() - Method in class org.nanonative.nano.core.NanoBase
-
Calculates the memory usage of the application in percentage.
- host() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the host name from the
HttpExchangeif available, otherwise extracts it from theHttpHeaders.HOSTheader. - HOST - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- hostname() - Method in class org.nanonative.nano.core.Nano
- HTTP_DATE_FORMATTER - Static variable in class org.nanonative.nano.services.http.model.HttpObject
- HTTP_EXCEPTION_HEADER - Static variable in class org.nanonative.nano.services.http.model.HttpObject
- HttpClient - Class in org.nanonative.nano.services.http.logic
- HttpClient() - Constructor for class org.nanonative.nano.services.http.logic.HttpClient
-
Constructs a new
HttpClientwith default settings. - HttpClient(Context) - Constructor for class org.nanonative.nano.services.http.logic.HttpClient
-
Constructs a new
HttpClientwith the provided context. - HttpClient(Context, HttpClient) - Constructor for class org.nanonative.nano.services.http.logic.HttpClient
-
Constructs a new
HttpClientwith the optional provided context and customHttpClient. - HttpHeaders - Class in org.nanonative.nano.services.http.model
-
Common HTTP headers - used in requests and responses.
- HttpMethod - Enum Class in org.nanonative.nano.services.http.model
- httpMethodOf(String) - Static method in enum class org.nanonative.nano.services.http.model.HttpMethod
- HttpObject - Class in org.nanonative.nano.services.http.model
-
Represents an HTTP request and response object within a server handling context.
- HttpObject() - Constructor for class org.nanonative.nano.services.http.model.HttpObject
-
Constructs a
HttpObject. - HttpObject(HttpExchange) - Constructor for class org.nanonative.nano.services.http.model.HttpObject
-
Constructs a new
HttpObjectfrom a specifiedHttpExchange. - HttpService - Class in org.nanonative.nano.services.http
- HttpService() - Constructor for class org.nanonative.nano.services.http.HttpService
I
- id() - Method in class org.nanonative.nano.core.model.Scheduler
- IF - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- IF_MATCH - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- IF_MODIFIED_SINCE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- IF_NONE_MATCH - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- IF_RANGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- IF_UNMODIFIED_SINCE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- ifPresent(int, Class<T>, Consumer<T>) - Method in class org.nanonative.nano.helper.event.model.Event
- ifPresent(int, Consumer<Event>) - Method in class org.nanonative.nano.helper.event.model.Event
- ifPresentAck(int, Class<T>, Consumer<T>) - Method in class org.nanonative.nano.helper.event.model.Event
- ifPresentAck(int, Consumer<Event>) - Method in class org.nanonative.nano.helper.event.model.Event
- IMAGE_BMP - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- IMAGE_GIF - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- IMAGE_JPEG - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- IMAGE_PNG - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- IMAGE_SVG - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- IMAGE_TIFF - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- IMAGE_WEBP - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- influx - Variable in class org.nanonative.nano.services.metric.logic.MetricService
- influx() - Method in class org.nanonative.nano.services.metric.logic.MetricService
- influx() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- info(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- info(Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- INFO - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- initLogger() - Method in class org.nanonative.nano.core.model.Context
-
Sets the logger name for the context logger.
- is1xxInformational() - Method in class org.nanonative.nano.services.http.model.HttpObject
- is2xxSuccessful() - Method in class org.nanonative.nano.services.http.model.HttpObject
- is3xxRedirection() - Method in class org.nanonative.nano.services.http.model.HttpObject
- is4xxClientError() - Method in class org.nanonative.nano.services.http.model.HttpObject
- is5xxServerError() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isAcknowledged() - Method in class org.nanonative.nano.helper.event.model.Event
- isChannelIdAvailable(int) - Static method in class org.nanonative.nano.helper.event.EventChannelRegister
-
Checks if an event type with the given ID exists.
- isComplete - Variable in class org.nanonative.nano.core.model.NanoThread
- isComplete() - Method in class org.nanonative.nano.core.model.NanoThread
- isDeflateCompressed(byte[]) - Method in class org.nanonative.nano.services.http.model.HttpObject
- isFrontendCall() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Determines if the
HttpObjectoriginates from a standard web browser based on theHttpHeaders.USER_AGENTheader. - isLoggable(LogLevel) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- isMethod(HttpObject, HttpMethod) - Static method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodDelete() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodGet() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodHead() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodOptions() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodPatch() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodPost() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodPut() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMethodTrace() - Method in class org.nanonative.nano.services.http.model.HttpObject
- isMobileCall() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Determines if the
HttpObjectoriginates from a mobile device based on theHttpHeaders.USER_AGENTheader. - isPortInUse(int) - Static method in class org.nanonative.nano.services.http.HttpService
- isReady - Variable in class org.nanonative.nano.core.model.Service
- isReady - Variable in class org.nanonative.nano.core.NanoBase
- isReady() - Method in class org.nanonative.nano.core.model.Service
- isReady() - Method in class org.nanonative.nano.core.NanoBase
-
Checks whether the instance is ready for operations.
- isZipCompressed(byte[]) - Method in class org.nanonative.nano.services.http.model.HttpObject
J
- JAVA_MANAGED_HEADERS - Static variable in class org.nanonative.nano.services.http.model.HttpObject
- javaLogger - Variable in class org.nanonative.nano.helper.logger.logic.NanoLogger
- javaLogger() - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- jsonEscape(Object) - Method in class org.nanonative.nano.helper.logger.logic.LogFormatterJson
-
Escapes special characters for JSON compatibility.
K
- kill(ExecutorService, long) - Method in class org.nanonative.nano.core.NanoThreads
-
Forces shutdown of an
ExecutorServiceif it doesn't terminate within the specified timeout.
L
- LAST_MODIFIED - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- level - Variable in class org.nanonative.nano.helper.logger.logic.NanoLogger
- level() - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- level(LogLevel) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- LINE_SEPARATOR - Static variable in class org.nanonative.nano.helper.NanoUtils
- listeners - Variable in class org.nanonative.nano.core.NanoBase
- listeners() - Method in class org.nanonative.nano.core.NanoBase
-
Retrieves the registered event listeners.
- LOCATION - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- LOCK_TOKEN - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- LockedBoolean - Class in org.nanonative.nano.helper
-
A thread-safe class that manages a boolean state with synchronized actions.
- LockedBoolean() - Constructor for class org.nanonative.nano.helper.LockedBoolean
-
Constructs a new LockedBoolean with the initial state set to false.
- LockedBoolean(boolean) - Constructor for class org.nanonative.nano.helper.LockedBoolean
-
Constructs a new LockedBoolean with the specified initial state.
- log(Logger, LogRecord) - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- log(LogLevel, Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- log(LogLevel, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- LOG_FORMATTERS - Static variable in class org.nanonative.nano.helper.logger.LogFormatRegister
- LogErrorHandler - Class in org.nanonative.nano.helper.logger.model
- LogErrorHandler(Formatter) - Constructor for class org.nanonative.nano.helper.logger.model.LogErrorHandler
- LogFormatRegister - Class in org.nanonative.nano.helper.logger
- LogFormatterConsole - Class in org.nanonative.nano.helper.logger.logic
-
Formatter for logging messages to the console.
- LogFormatterConsole() - Constructor for class org.nanonative.nano.helper.logger.logic.LogFormatterConsole
- LogFormatterJson - Class in org.nanonative.nano.helper.logger.logic
-
A log formatter that outputs log records in JSON format.
- LogFormatterJson() - Constructor for class org.nanonative.nano.helper.logger.logic.LogFormatterJson
- logger - Variable in class org.nanonative.nano.core.model.Service
- logger - Variable in class org.nanonative.nano.core.NanoBase
- logger() - Method in class org.nanonative.nano.core.model.Context
-
Retrieves the logger associated with this context.
- logger() - Method in class org.nanonative.nano.core.model.Service
- logger() - Method in class org.nanonative.nano.core.NanoBase
-
Retrieves the logger associated with this instance.
- logger() - Method in class org.nanonative.nano.helper.event.model.Event
- LogInfoHandler - Class in org.nanonative.nano.helper.logger.model
- LogInfoHandler(Formatter) - Constructor for class org.nanonative.nano.helper.logger.model.LogInfoHandler
- logLevel() - Method in class org.nanonative.nano.core.model.Context
-
Retrieves the log level of the context logger.
- LogLevel - Enum Class in org.nanonative.nano.helper.logger.model
- logQueue - Variable in class org.nanonative.nano.helper.logger.logic.NanoLogger
- logQueue() - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- logQueue(LogQueue) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- LogQueue - Class in org.nanonative.nano.helper.logger.logic
- LogQueue() - Constructor for class org.nanonative.nano.helper.logger.logic.LogQueue
M
- MAX_FORWARDS - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- MAX_LOG_NAME_LENGTH - Static variable in class org.nanonative.nano.helper.logger.logic.NanoLogger
- MESSAGE_KEY_VALUE_PATTERN - Static variable in class org.nanonative.nano.helper.logger.logic.LogFormatterJson
- method - Variable in class org.nanonative.nano.services.http.model.HttpObject
- method() - Method in class org.nanonative.nano.services.http.model.HttpObject
- methodType() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Returns the current HTTP method of this object.
- methodType(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the HTTP method for this object.
- methodType(HttpMethod) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the HTTP method for this object.
- Metric(T, TreeMap<String, String>, String) - Constructor for record class org.nanonative.nano.services.metric.model.MetricCache.Metric
-
Creates an instance of a
Metricrecord class. - MetricCache - Class in org.nanonative.nano.services.metric.model
- MetricCache() - Constructor for class org.nanonative.nano.services.metric.model.MetricCache
- MetricCache.Metric<T> - Record Class in org.nanonative.nano.services.metric.model
- metricName() - Method in record class org.nanonative.nano.services.metric.model.MetricCache.Metric
-
Returns the value of the
metricNamerecord component. - metrics() - Method in class org.nanonative.nano.services.metric.logic.MetricService
- MetricService - Class in org.nanonative.nano.services.metric.logic
- MetricService() - Constructor for class org.nanonative.nano.services.metric.logic.MetricService
- MetricType - Enum Class in org.nanonative.nano.services.metric.model
- MetricUpdate - Record Class in org.nanonative.nano.services.metric.model
- MetricUpdate(MetricType, String, Number, Map<String, String>) - Constructor for record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Creates an instance of a
MetricUpdaterecord class. - MULTIPART_FORM_DATA - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
N
- name - Variable in class org.nanonative.nano.core.model.Service
- name() - Method in class org.nanonative.nano.core.model.Service
- name() - Method in class org.nanonative.nano.helper.event.model.Event
- name() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Returns the value of the
namerecord component. - nameOrg() - Method in class org.nanonative.nano.helper.event.model.Event
- nano - Variable in class org.nanonative.nano.core.model.Context
- nano() - Method in class org.nanonative.nano.core.model.Context
-
Retrieves the
Nanoinstance associated with this context. - nano() - Method in record class org.nanonative.nano.core.model.Unhandled
- nano() - Method in class org.nanonative.nano.helper.event.model.Event
- Nano - Class in org.nanonative.nano.core
- Nano(FunctionOrNull<Context, List<Service>>, Map<Object, Object>, String...) - Constructor for class org.nanonative.nano.core.Nano
- Nano(String[], FunctionOrNull<Context, List<Service>>) - Constructor for class org.nanonative.nano.core.Nano
- Nano(String[], Service...) - Constructor for class org.nanonative.nano.core.Nano
- Nano(Map<Object, Object>, FunctionOrNull<Context, List<Service>>) - Constructor for class org.nanonative.nano.core.Nano
- Nano(Map<Object, Object>, Service...) - Constructor for class org.nanonative.nano.core.Nano
- Nano(Service...) - Constructor for class org.nanonative.nano.core.Nano
- NANO_NAMES - Static variable in class org.nanonative.nano.helper.NanoUtils
- NanoBase<T> - Class in org.nanonative.nano.core
-
The abstract base class for
Nanoframework providing the core functionalities. - NanoBase(Map<Object, Object>, String...) - Constructor for class org.nanonative.nano.core.NanoBase
-
Initializes the NanoBase with provided configurations and arguments.
- NanoLogger - Class in org.nanonative.nano.helper.logger.logic
- NanoLogger(Class<?>) - Constructor for class org.nanonative.nano.helper.logger.logic.NanoLogger
- NanoLogger(Object) - Constructor for class org.nanonative.nano.helper.logger.logic.NanoLogger
- nanoLogLevelOf(String) - Static method in enum class org.nanonative.nano.helper.logger.model.LogLevel
- nanoLogLevelOf(Level) - Static method in enum class org.nanonative.nano.helper.logger.model.LogLevel
- NanoServices<T> - Class in org.nanonative.nano.core
- NanoServices(Map<Object, Object>, String...) - Constructor for class org.nanonative.nano.core.NanoServices
-
Initializes
NanoServiceswith configurations and command-line arguments. - nanoThread(Context) - Method in class org.nanonative.nano.core.model.Service
- NanoThread - Class in org.nanonative.nano.core.model
- NanoThread() - Constructor for class org.nanonative.nano.core.model.NanoThread
- NanoThread(Context) - Constructor for class org.nanonative.nano.core.model.NanoThread
- NanoThreads<T> - Class in org.nanonative.nano.core
-
The abstract base class for
Nanoframework providing thread handling functionalities. - NanoThreads(Map<Object, Object>, String...) - Constructor for class org.nanonative.nano.core.NanoThreads
-
Initializes
NanoThreadswith configurations and command-line arguments. - NanoUtils - Class in org.nanonative.nano.helper
- newContext(Class<?>) - Method in class org.nanonative.nano.core.model.Context
-
Creates new Context with a new logger and trace ID.
- newEmptyContext(Class<?>) - Method in class org.nanonative.nano.core.model.Context
-
Creates new empty Context with a new logger and trace ID.
- nextFreePort(int) - Static method in class org.nanonative.nano.services.http.HttpService
O
- OFF - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- onComplete(BiConsumer<NanoThread, Throwable>) - Method in class org.nanonative.nano.core.model.NanoThread
- onCompleteCallbacks - Variable in class org.nanonative.nano.core.model.NanoThread
- onEvent(Event) - Method in class org.nanonative.nano.core.model.Service
- onEvent(Event) - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- onEvent(Event) - Method in class org.nanonative.nano.services.http.HttpService
- onEvent(Event) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- onFailure(Event) - Method in class org.nanonative.nano.core.model.Service
- onFailure(Event) - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- onFailure(Event) - Method in class org.nanonative.nano.services.http.HttpService
- onFailure(Event) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- OPTIONS - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- org.nanonative.nano.core - package org.nanonative.nano.core
- org.nanonative.nano.core.model - package org.nanonative.nano.core.model
- org.nanonative.nano.helper - package org.nanonative.nano.helper
- org.nanonative.nano.helper.config - package org.nanonative.nano.helper.config
- org.nanonative.nano.helper.event - package org.nanonative.nano.helper.event
- org.nanonative.nano.helper.event.model - package org.nanonative.nano.helper.event.model
- org.nanonative.nano.helper.logger - package org.nanonative.nano.helper.logger
- org.nanonative.nano.helper.logger.logic - package org.nanonative.nano.helper.logger.logic
- org.nanonative.nano.helper.logger.model - package org.nanonative.nano.helper.logger.model
- org.nanonative.nano.services.http - package org.nanonative.nano.services.http
- org.nanonative.nano.services.http.logic - package org.nanonative.nano.services.http.logic
- org.nanonative.nano.services.http.model - package org.nanonative.nano.services.http.model
- org.nanonative.nano.services.metric.logic - package org.nanonative.nano.services.metric.logic
- org.nanonative.nano.services.metric.model - package org.nanonative.nano.services.metric.model
- origin() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the origin from the current request.
- origin(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the origin header for the current
HttpObject. - origin(String, boolean) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Determines the value for the
Access-Control-Allow-Originheader. - ORIGIN - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- OVERWRITE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
P
- paddingLogLevel - Variable in class org.nanonative.nano.helper.logger.logic.LogFormatterConsole
- parent() - Method in class org.nanonative.nano.core.model.Context
-
Retrieves the
Contextparent associated with this context. - PATCH - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- path - Variable in class org.nanonative.nano.services.http.model.HttpObject
- path() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the current path of the
HttpObjectwithout last '/'. - path(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the path for this
HttpObject. - pathMatch(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Checks if the current
HttpObject.path()matches a specified expression. - pathParam(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the value of a specified path parameter.
- pathParams - Variable in class org.nanonative.nano.services.http.model.HttpObject
- pathParams() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves a map of path parameters extracted from the URL.
- payload - Variable in class org.nanonative.nano.helper.event.model.Event
- payload() - Method in record class org.nanonative.nano.core.model.Unhandled
-
Returns the value of the
payloadrecord component. - payload() - Method in class org.nanonative.nano.helper.event.model.Event
- payload(Class<T>) - Method in record class org.nanonative.nano.core.model.Unhandled
- payload(Class<T>) - Method in class org.nanonative.nano.helper.event.model.Event
- payloadOpt() - Method in class org.nanonative.nano.helper.event.model.Event
- payloadOpt(Class<T>) - Method in record class org.nanonative.nano.core.model.Unhandled
- payloadOpt(Class<T>) - Method in class org.nanonative.nano.helper.event.model.Event
- peek(Consumer<Event>) - Method in class org.nanonative.nano.helper.event.model.Event
- pid() - Method in class org.nanonative.nano.core.NanoBase
-
Retrieves the process ID of the current instance.
- port() - Method in class org.nanonative.nano.services.http.HttpService
- port() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the host port from the
HttpExchangeif available, otherwise extracts it from theHttpHeaders.HOSTheader. - POST - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- PRAGMA - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- printActiveProfiles() - Method in class org.nanonative.nano.core.Nano
- printParameters() - Method in class org.nanonative.nano.core.Nano
-
Prints the configurations that have been loaded into the
Nanoinstance. - printSystemInfo() - Method in class org.nanonative.nano.core.Nano
-
Prints system information for diagnostic purposes.
- process() - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- prometheus() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- prometheusPath - Variable in class org.nanonative.nano.services.metric.logic.MetricService
- prometheusPath() - Method in class org.nanonative.nano.services.metric.logic.MetricService
- protocol() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the protocol used in the
HttpExchange. - PROXY_AUTHENTICATE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- PROXY_AUTHORIZATION - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- publish(LogRecord) - Method in class org.nanonative.nano.helper.logger.model.LogErrorHandler
- publish(LogRecord) - Method in class org.nanonative.nano.helper.logger.model.LogInfoHandler
- put(Object, Object) - Method in class org.nanonative.nano.core.model.Context
-
Puts a key-value pair into the context.
- put(Object, Object) - Method in class org.nanonative.nano.helper.event.model.Event
- PUT - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- putAll(TypeMap) - Method in class org.nanonative.nano.core.NanoBase
- putAll(Map<?, ?>) - Method in class org.nanonative.nano.core.model.Context
- putEntry(Map<String, String>, Object, Object) - Method in class org.nanonative.nano.helper.logger.logic.LogFormatterJson
-
Adds escaped and converted key-value pairs to the map.
- putReturn(Object, Object) - Method in class org.nanonative.nano.core.model.Context
-
Associates the specified value with the specified key in this map.
Q
- queryParam(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the value of a specified query parameter.
- queryParams - Variable in class org.nanonative.nano.services.http.model.HttpObject
- queryParams() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves all query parameters from the current
HttpObject. - queryParamsOf(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
- queue - Variable in class org.nanonative.nano.helper.logger.logic.LogQueue
- queueCapacity - Variable in class org.nanonative.nano.helper.logger.logic.LogQueue
R
- random - Static variable in class org.nanonative.nano.helper.NanoUtils
- RANGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- readConfigFile(Context, String) - Static method in class org.nanonative.nano.helper.NanoUtils
- readConfigFiles(Context, String) - Static method in class org.nanonative.nano.helper.NanoUtils
- readConfigs(String...) - Method in class org.nanonative.nano.core.NanoBase
-
Reads and initializes
Contextbased on provided arguments. - readProfiles(Context) - Static method in class org.nanonative.nano.helper.NanoUtils
- readTimeoutMs - Variable in class org.nanonative.nano.services.http.logic.HttpClient
- readTimeoutMs() - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Returns the read timeout in milliseconds configured for this
HttpClient. - REFERER - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- registerChannelId(String) - Method in class org.nanonative.nano.core.model.Context
-
Registers a new event type with a given name if it does not already exist.
- registerChannelId(String) - Static method in class org.nanonative.nano.helper.event.EventChannelRegister
-
Registers a new event type with a given name if it does not already exist.
- registerConfig(String, String) - Static method in class org.nanonative.nano.helper.config.ConfigRegister
-
Registers a configuration key with its description.
- registerLogFormatter(String, Formatter) - Static method in class org.nanonative.nano.helper.logger.LogFormatRegister
- registerService(Service) - Method in class org.nanonative.nano.core.NanoServices
-
Registers a new service in the
Nanoframework. - removeLast(String, String) - Static method in class org.nanonative.nano.services.http.model.HttpObject
- removeScheduler(ExecutorService) - Method in class org.nanonative.nano.core.NanoThreads
-
Removes a scheduler from the set of managed schedulers.
- resolvePlaceHolders(Context) - Static method in class org.nanonative.nano.helper.NanoUtils
- respond(Event) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sends an HTTP response using the current
HttpObjectas the response context. - response - Variable in class org.nanonative.nano.helper.event.model.Event
- response() - Method in class org.nanonative.nano.helper.event.model.Event
- response() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObject. - response(boolean) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Creates and returns a new instance of
HttpObject. - response(Class<T>) - Method in class org.nanonative.nano.helper.event.model.Event
- response(Object) - Method in class org.nanonative.nano.helper.event.model.Event
- responseListener - Variable in class org.nanonative.nano.helper.event.model.Event
- responseListener() - Method in class org.nanonative.nano.helper.event.model.Event
- responseOf(HttpResponse<byte[]>, HttpObject) - Method in class org.nanonative.nano.services.http.logic.HttpClient
- responseOpt(Class<T>) - Method in class org.nanonative.nano.helper.event.model.Event
- retries - Variable in class org.nanonative.nano.services.http.logic.HttpClient
- retries() - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Returns the number of retries configured for this
HttpClient. - RETRY_AFTER - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- run() - Method in interface org.nanonative.nano.helper.ExRunnable
- run(boolean, Consumer<Boolean>) - Method in class org.nanonative.nano.helper.LockedBoolean
-
Executes a
Consumerbased on a condition without changing the state. - run(ExecutorService, Supplier<Context>, ExRunnable) - Method in class org.nanonative.nano.core.model.NanoThread
- run(Consumer<Boolean>) - Method in class org.nanonative.nano.helper.LockedBoolean
-
Executes a
Consumerbased on the current state. - run(Supplier<Context>, ExRunnable, long, long, TimeUnit, BooleanSupplier) - Method in class org.nanonative.nano.core.NanoThreads
-
Executes a task periodically, starting after an initial delay.
- run(Supplier<Context>, ExRunnable, long, TimeUnit) - Method in class org.nanonative.nano.core.NanoThreads
-
Executes a task asynchronously after a specified delay.
- run(Supplier<Context>, ExRunnable, LocalTime, BooleanSupplier) - Method in class org.nanonative.nano.core.NanoThreads
-
Executes a task periodically, starting after an initial delay.
- run(Service...) - Method in class org.nanonative.nano.core.model.Context
-
Executes one or multiple
Serviceasynchronously. - run(ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes one or multiple runnable asynchronously.
- run(ExRunnable, long, long, TimeUnit) - Method in class org.nanonative.nano.core.model.Context
-
Executes a task periodically, starting after an initial delay.
- run(ExRunnable, long, long, TimeUnit, BooleanSupplier) - Method in class org.nanonative.nano.core.model.Context
-
Executes a task periodically, starting after an initial delay.
- run(ExRunnable, long, TimeUnit) - Method in class org.nanonative.nano.core.model.Context
-
Executes a task asynchronously after a specified delay.
- run(ExRunnable, LocalTime) - Method in class org.nanonative.nano.core.model.Context
-
Executes a task periodically, starting after an initial delay.
- run(ExRunnable, LocalTime, BooleanSupplier) - Method in class org.nanonative.nano.core.model.Context
-
Executes a task periodically, starting after an initial delay.
- runAwait(Service...) - Method in class org.nanonative.nano.core.model.Context
-
Executes asynchronously and waits for all
Serviceto be ready - runAwait(ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes asynchronously and waits for all runnable to be ready
- runAwaitHandled(Consumer<Unhandled>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes asynchronously and waits for all runnable to be ready
- runAwaitReturn(Service...) - Method in class org.nanonative.nano.core.model.Context
-
Executes and waits for all
Serviceto be ready - runAwaitReturn(ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes asynchronously and waits for all
Serviceto be ready - runAwaitReturnHandled(Consumer<Unhandled>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes and waits for all
Serviceto be ready - runHandled(Consumer<Unhandled>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes one or multiple runnable asynchronously.
- runReturn(Service...) - Method in class org.nanonative.nano.core.model.Context
-
Executes one or multiple
Serviceasynchronously. - runReturn(ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes one or multiple runnable asynchronously.
- runReturnHandled(Consumer<Unhandled>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
-
Executes one or multiple runnable asynchronously.
S
- sanitizeMetricName(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- Scheduler - Class in org.nanonative.nano.core.model
- Scheduler(String) - Constructor for class org.nanonative.nano.core.model.Scheduler
- Scheduler(String, int, RejectedExecutionHandler) - Constructor for class org.nanonative.nano.core.model.Scheduler
- schedulers - Variable in class org.nanonative.nano.core.NanoThreads
- schedulers() - Method in class org.nanonative.nano.core.NanoThreads
-
Provides an unmodifiable set of
ScheduledExecutorService. - send(int, HttpRequest, HttpObject, Consumer<HttpObject>) - Method in class org.nanonative.nano.services.http.logic.HttpClient
- send(HttpRequest) - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Sends an HTTP request using the provided
HttpObjectorHttpRequest. - send(HttpRequest, Consumer<HttpObject>) - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Sends an HTTP request using the provided
HttpObjectorHttpRequest. - send(Context) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sends an HTTP request using the provided
HttpObject. - send(Context, Consumer<HttpObject>) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sends an HTTP request using the provided
HttpObject. - sendEvent(int, Object) - Method in class org.nanonative.nano.core.model.Context
-
Sends an event of the specified type with the provided payload within this context without expecting a response.
- sendEvent(int, Object, Consumer<Object>) - Method in class org.nanonative.nano.core.model.Context
-
Sends an event of the specified type with the provided payload within this context, expecting a response that is handled by the provided responseListener.
- sendEvent(int, Context, Object, Consumer<Object>, boolean) - Method in class org.nanonative.nano.core.Nano
-
Sends an event with the specified parameters, either broadcasting it to all listeners or sending it to a targeted listener asynchronously if a response listener is provided.
- sendEventError(Object, Throwable) - Method in class org.nanonative.nano.core.model.Context
-
Sends an unhandled event with the provided, nullable payload and exception.
- sendEventError(Event, Service, Throwable) - Method in class org.nanonative.nano.core.model.Context
-
Sends an unhandled event with the provided, nullable payload and exception.
- sendEventReturn(int, Object) - Method in class org.nanonative.nano.core.model.Context
-
Sends an event of the specified type with the provided payload within this context without expecting a response.
- sendEventReturn(int, Object, Consumer<Object>) - Method in class org.nanonative.nano.core.model.Context
-
Sends an event of the specified type with the provided payload within this context, expecting a response that is handled by the provided responseListener.
- sendEventReturn(int, Context, Object, Consumer<Object>, boolean) - Method in class org.nanonative.nano.core.Nano
-
Processes an event with the given parameters and decides on the execution path based on the presence of a response listener and the broadcast flag.
- sendEventSameThread(Event, boolean) - Method in class org.nanonative.nano.core.Nano
-
Sends an event on the same thread and determines whether to process it to the first listener.
- sendResponse(HttpExchange, HttpObject, HttpObject) - Method in class org.nanonative.nano.services.http.HttpService
- server - Variable in class org.nanonative.nano.services.http.HttpService
- server() - Method in class org.nanonative.nano.services.http.HttpService
- SERVER - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- service(Class<S>) - Method in class org.nanonative.nano.core.model.Context
-
Retrieves a
Serviceof a specified type. - service(Class<S>) - Method in class org.nanonative.nano.core.NanoServices
-
Retrieves a
Serviceof a specified type. - service(Class<S>, long) - Method in class org.nanonative.nano.core.model.Context
-
Waits for a
Serviceof a specified type to be available within the given timeout. - Service - Class in org.nanonative.nano.core.model
- Service(String, boolean) - Constructor for class org.nanonative.nano.core.model.Service
- services - Variable in class org.nanonative.nano.core.NanoServices
- services() - Method in class org.nanonative.nano.core.model.Context
-
Provides an unmodifiable list of all registered
Service. - services() - Method in class org.nanonative.nano.core.NanoServices
-
Provides an unmodifiable list of all registered
Service. - services(Class<S>) - Method in class org.nanonative.nano.core.model.Context
-
Retrieves a list of services of a specified type.
- services(Class<S>) - Method in class org.nanonative.nano.core.NanoServices
-
Retrieves a list of services of a specified type.
- set(boolean) - Method in class org.nanonative.nano.helper.LockedBoolean
-
Sets the state to the specified value with thread safety.
- set(boolean, boolean) - Method in class org.nanonative.nano.helper.LockedBoolean
-
Conditionally sets the state based on a condition.
- set(boolean, boolean, Consumer<Boolean>) - Method in class org.nanonative.nano.helper.LockedBoolean
-
Conditionally sets the state and executes a
Consumerbased on a condition. - set(boolean, Consumer<Boolean>) - Method in class org.nanonative.nano.helper.LockedBoolean
-
Sets the state to the specified value with thread safety.
- setError(AtomicBoolean) - Static method in class org.nanonative.nano.services.http.HttpService
- setLogLevel(LogLevel) - Method in class org.nanonative.nano.core.NanoBase
-
Sets the logging level for the NanoBase instance.
- shutdown(Class<?>) - Method in class org.nanonative.nano.core.Nano
-
Shuts down the
Nanoinstance, ensuring all services and threads are gracefully terminated. - shutdown(Context) - Method in class org.nanonative.nano.core.Nano
-
Shuts down the
Nanoinstance, ensuring all services and threads are gracefully terminated. - shutdownExecutors(long, ExecutorService...) - Method in class org.nanonative.nano.core.NanoThreads
-
Shuts down executors and handles timeout for forced termination.
- shutdownServices(Context) - Method in class org.nanonative.nano.core.NanoServices
-
Shuts down all registered
Servicegracefully. - shutdownThreads() - Method in class org.nanonative.nano.core.NanoThreads
-
Shuts down all threads and scheduled executors gracefully.
- size() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Calculates the size of the HTTP content.
- sizeRequest() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Checks if the Range header has been set to request only the first byte of the content.
- sizeRequest(boolean) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the HTTP Range header to request only the first byte of the content.
- sorted() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- split(String, String) - Static method in class org.nanonative.nano.helper.NanoUtils
- splitHeaderValue(Collection<String>, Function<String, R>) - Static method in class org.nanonative.nano.services.http.model.HttpObject
- standardiseKey(Object) - Static method in class org.nanonative.nano.core.NanoBase
-
Standardizes a config key.
- start(Supplier<Context>) - Method in class org.nanonative.nano.core.model.Service
- start(Supplier<Context>) - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- start(Supplier<Context>) - Method in class org.nanonative.nano.services.http.HttpService
- start(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- startServices(FunctionOrNull<Context, List<Service>>) - Method in class org.nanonative.nano.core.Nano
- STARTUP_LOCK - Static variable in class org.nanonative.nano.services.http.HttpService
- STATUS_URI - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- statusCode - Variable in class org.nanonative.nano.services.http.model.HttpObject
- statusCode() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the current HTTP status code for the
HttpObject. - statusCode(int) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the HTTP status code for the
HttpObject. - stop(Class<?>) - Method in class org.nanonative.nano.core.Nano
-
Initiates the shutdown process for the
Nanoinstance. - stop(Class<?>) - Method in class org.nanonative.nano.core.NanoBase
-
Initiates the shutdown process for the
Nanoinstance. - stop(Supplier<Context>) - Method in class org.nanonative.nano.core.model.Service
- stop(Supplier<Context>) - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- stop(Supplier<Context>) - Method in class org.nanonative.nano.services.http.HttpService
- stop(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- stop(Context) - Method in class org.nanonative.nano.core.Nano
-
Initiates the shutdown process for the
Nanoinstance. - stop(Context) - Method in class org.nanonative.nano.core.NanoBase
-
Initiates the shutdown process for the
Nanoinstance. - subscribeEvent(int, Consumer<Event>) - Method in class org.nanonative.nano.core.model.Context
-
Registers an event listener for a specific event type.
- subscribeEvent(int, Consumer<Event>) - Method in class org.nanonative.nano.core.NanoBase
-
Registers an event listener for a specific event type.
- successOrElse(Consumer<HttpObject>, Consumer<HttpObject>) - Method in class org.nanonative.nano.services.http.model.HttpObject
T
- tags() - Method in record class org.nanonative.nano.services.metric.model.MetricCache.Metric
-
Returns the value of the
tagsrecord component. - tags() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Returns the value of the
tagsrecord component. - TE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- TEXT_HTML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- TEXT_PLAIN - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- TEXT_XML - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- threadPool - Variable in class org.nanonative.nano.core.NanoThreads
- threadPool() - Method in class org.nanonative.nano.core.NanoThreads
-
Gets the thread pool executor used by
Nano. - threadsOf(Context, Service...) - Static method in class org.nanonative.nano.core.model.Service
- timeout() - Method in class org.nanonative.nano.services.http.model.HttpObject
- timeout(long) - Method in class org.nanonative.nano.services.http.model.HttpObject
- TIMEOUT - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- timeoutMs - Variable in class org.nanonative.nano.services.http.model.HttpObject
- timer(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- timer(String, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- TIMER_END - Enum constant in enum class org.nanonative.nano.services.metric.model.MetricType
- TIMER_START - Enum constant in enum class org.nanonative.nano.services.metric.model.MetricType
- timers() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- timerStart(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- timerStart(String, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- timerStop(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- timerStop(String, Map<String, String>) - Method in class org.nanonative.nano.services.metric.model.MetricCache
- toJavaLogLevel() - Method in enum class org.nanonative.nano.helper.logger.model.LogLevel
- toString() - Method in class org.nanonative.nano.core.model.Context
- toString() - Method in class org.nanonative.nano.core.model.NanoThread
- toString() - Method in class org.nanonative.nano.core.model.Scheduler
- toString() - Method in record class org.nanonative.nano.core.model.Unhandled
-
Returns a string representation of this record class.
- toString() - Method in class org.nanonative.nano.core.Nano
- toString() - Method in class org.nanonative.nano.helper.event.model.Event
- toString() - Method in class org.nanonative.nano.helper.LockedBoolean
- toString() - Method in class org.nanonative.nano.helper.logger.logic.LogQueue
- toString() - Method in class org.nanonative.nano.services.http.logic.HttpClient
- toString() - Method in class org.nanonative.nano.services.http.model.HttpObject
- toString() - Method in record class org.nanonative.nano.services.metric.model.MetricCache.Metric
-
Returns a string representation of this record class.
- toString() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- toString() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Returns a string representation of this record class.
- trace(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- trace(Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- TRACE - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- TRACE - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
- traceId() - Method in class org.nanonative.nano.core.model.Context
-
Retrieves the last created trace ID of the context.
- traceId(int) - Method in class org.nanonative.nano.core.model.Context
-
Retrieves the trace ID at the specified index.
- traceIds() - Method in class org.nanonative.nano.core.model.Context
-
Retrieves all trace IDs associated with this context.
- TRAILER - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- TRANSFER_ENCODING - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- tryExecute(Supplier<Context>, ExRunnable) - Static method in class org.nanonative.nano.helper.NanoUtils
- tryExecute(Supplier<Context>, ExRunnable, Consumer<Throwable>) - Static method in class org.nanonative.nano.helper.NanoUtils
- tryExecute(ExRunnable) - Method in class org.nanonative.nano.core.model.Context
- tryExecute(ExRunnable, Consumer<Throwable>) - Method in class org.nanonative.nano.core.model.Context
- type() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Returns the value of the
typerecord component.
U
- Unhandled - Record Class in org.nanonative.nano.core.model
- Unhandled(Context, Object, Throwable) - Constructor for record class org.nanonative.nano.core.model.Unhandled
-
Creates an instance of a
Unhandledrecord class. - unregisterService(Context, Service) - Method in class org.nanonative.nano.core.NanoServices
- unsubscribeEvent(int, Consumer<Event>) - Method in class org.nanonative.nano.core.model.Context
-
Removes a registered event listener for a specific event type.
- unsubscribeEvent(int, Consumer<Event>) - Method in class org.nanonative.nano.core.NanoBase
-
Removes a registered event listener for a specific event type.
- updateArch(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateBufferMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateClassLoaderMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateCompilerMetrics(Nano) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateCpuMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateDiscMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateJavaVersion(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateMemoryMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateMetric(MetricUpdate) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateMetrics(Nano) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateNanoMetrics(Nano) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateOs(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updatePoolMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateSystemMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- updateThreadMetrics(Supplier<Context>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
- UPGRADE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- uri() - Method in class org.nanonative.nano.services.http.model.HttpObject
- usedMemoryMB() - Method in class org.nanonative.nano.core.NanoBase
-
Calculates the memory usage of the application in megabytes.
- USER_AGENT - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- USER_AGENT_BROWSERS - Static variable in class org.nanonative.nano.services.http.model.HttpObject
- USER_AGENT_MOBILE - Static variable in class org.nanonative.nano.services.http.model.HttpObject
- userAgent() - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Retrieves the
HttpHeaders.USER_AGENTheader from theHttpObject. - userAgent(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
-
Sets the
HttpHeaders.USER_AGENTheader for theHttpObject.
V
- value() - Method in enum class org.nanonative.nano.services.http.model.ContentType
- value() - Method in record class org.nanonative.nano.services.metric.model.MetricCache.Metric
-
Returns the value of the
valuerecord component. - value() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class org.nanonative.nano.helper.logger.model.LogLevel
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.nanonative.nano.services.http.model.ContentType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.nanonative.nano.services.http.model.HttpMethod
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.nanonative.nano.services.metric.model.MetricType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.nanonative.nano.helper.logger.model.LogLevel
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.nanonative.nano.services.http.model.ContentType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.nanonative.nano.services.http.model.HttpMethod
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.nanonative.nano.services.metric.model.MetricType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VARY - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- version() - Method in class org.nanonative.nano.services.http.logic.HttpClient
-
Returns the
HttpClient.Versionused by thisHttpClient. - version() - Method in class org.nanonative.nano.services.http.model.HttpObject
- VIA - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- VIDEO_MP4 - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- VIRTUAL_THREAD_POOL - Static variable in class org.nanonative.nano.core.model.NanoThread
W
- waitFor(Runnable, NanoThread...) - Static method in class org.nanonative.nano.core.model.NanoThread
-
Waits for all provided
NanoThreadinstances to complete execution and optionally executes aRunnableonce all threads have finished. - waitFor(NanoThread...) - Static method in class org.nanonative.nano.core.model.NanoThread
-
Blocks until all provided
NanoThreadinstances have completed execution. - waitForCondition(BooleanSupplier) - Static method in class org.nanonative.nano.helper.NanoUtils
-
Waits for a condition to become true, with actions on success or timeout.
- waitForCondition(BooleanSupplier, long) - Static method in class org.nanonative.nano.helper.NanoUtils
-
Waits for a condition to become true, with actions on success or timeout.
- waitForStop() - Method in class org.nanonative.nano.core.Nano
-
This method blocks the current thread for max 10 seconds until the
Nanoinstance is no longer ready. - warn(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- warn(Supplier<String>, Object...) - Method in class org.nanonative.nano.helper.logger.logic.NanoLogger
- WARN - Enum constant in enum class org.nanonative.nano.helper.logger.model.LogLevel
- WARNING - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
- wavefront - Variable in class org.nanonative.nano.services.metric.logic.MetricService
- wavefront() - Method in class org.nanonative.nano.services.metric.logic.MetricService
- wavefront() - Method in class org.nanonative.nano.services.metric.model.MetricCache
- WILDCARD - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
- WWW_AUTHENTICATE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form