Index

A B C D E F G H I J K L M N O P Q R S T U V W Y 
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
Marks the event as acknowledged without providing a response body.
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
 
addJsonEntries(Map<String, String>, Object[]) - Method in class org.nanonative.nano.services.logging.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.HttpServer
 
address() - Method in class org.nanonative.nano.services.http.model.HttpObject
Retrieves the InetAddress from the HttpExchange.
AGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
ALL - Enum constant in enum class org.nanonative.nano.services.logging.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_NANO_NAME - 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_JAVASCRIPT - 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
 
apply(T) - Method in interface org.nanonative.nano.helper.ExFunction
 
apply(T, Consumer<Exception>) - Method in interface org.nanonative.nano.helper.ExFunction
 
applyCustomFormat(String, Object...) - Static method in class org.nanonative.nano.services.logging.LogFormatterConsole
Replacing placeholders with parameters.
async(boolean) - Method in class org.nanonative.nano.helper.event.model.Event
Sets the event to asynchronous mode, allowing the response to be handled by a listener.
async(Consumer<R>) - Method in class org.nanonative.nano.helper.event.model.Event
Sets the event to asynchronous mode, allowing the response to be handled by a listener.
asyncFromPool(Supplier<Context>) - Method in class org.nanonative.nano.core.NanoThreads
Creates a Scheduler from 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.AUTHORIZATION header.
authToken(int) - Method in class org.nanonative.nano.services.http.model.HttpObject
Parses and returns any authentication token found in the HttpHeaders.AUTHORIZATION header.
authTokens() - Method in class org.nanonative.nano.services.http.model.HttpObject
Parses and returns any authentication token found in the HttpHeaders.AUTHORIZATION header.
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 Charset from HttpObject.encoding() specified in the HttpHeaders.CONTENT_TYPE header.
body(byte[]) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpObject.body() from a TypeInfo object.
body(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpObject.body() from a TypeInfo object, encoding it into bytes using the Charset from HttpObject.encoding().
body(Collection<?>) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpObject.body() from a Collection object, encoding it into JSON format using the Charset from HttpObject.encoding().
body(Map<?, ?>) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpObject.body() from a Map object, encoding it into JSON format using the Charset from HttpObject.encoding().
bodyAsJson() - Method in class org.nanonative.nano.services.http.model.HttpObject
Returns a TypeInfo representation of the HttpObject.body(), decoded using the Charset from HttpObject.encoding() specified in the HttpHeaders.CONTENT_TYPE header.
bodyAsList() - Method in class org.nanonative.nano.services.http.model.HttpObject
Returns TypeList of the HttpObject.body(), decoded using the Charset from HttpObject.encoding() specified in the HttpHeaders.CONTENT_TYPE header.
bodyAsMap() - Method in class org.nanonative.nano.services.http.model.HttpObject
Returns LinkedTypeMap of the HttpObject.body(), decoded using the Charset from HttpObject.encoding() specified in the HttpHeaders.CONTENT_TYPE header.
bodyAsString() - Method in class org.nanonative.nano.services.http.model.HttpObject
Returns a string representation of the HttpObject.body(), decoded using the Charset from HttpObject.encoding() specified in the HttpHeaders.CONTENT_TYPE header.
bodyAsXml() - Method in class org.nanonative.nano.services.http.model.HttpObject
Returns a string representation of the HttpObject.body(), decoded using the Charset from HttpObject.encoding() specified in the HttpHeaders.CONTENT_TYPE header.
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 a TypeInfo object, encoding it into JSON format using the Charset from HttpObject.encoding().
broadcast(boolean) - Method in class org.nanonative.nano.helper.event.model.Event
Sets the broadcast flag.

C

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
 
channel - Variable in class org.nanonative.nano.helper.event.model.Event
 
channel() - Method in class org.nanonative.nano.helper.event.model.Event
Returns the name of the Channel.
channel(Channel<A, B>) - Method in class org.nanonative.nano.helper.event.model.Event
Returns the event as an Optional of type Event.
Channel<T,R> - Record Class in org.nanonative.nano.helper.event.model
Publish/subscribe channel used to route events between components.
Channel(int, String, Class<T>, Class<R>) - Constructor for record class org.nanonative.nano.helper.event.model.Channel
Creates an instance of a Channel record class.
channelOf(int) - Static method in record class org.nanonative.nano.helper.event.model.Channel
Retrieves the name of an event Channel given its id.
channelOf(String) - Static method in record class org.nanonative.nano.helper.event.model.Channel
Attempts to find the Channel based on its name.
circuitBreaker(int, HttpRequest, HttpObject, Consumer<HttpObject>, Throwable) - Method in class org.nanonative.nano.services.http.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
Performs the cleanUps operation like memory.
client - Variable in class org.nanonative.nano.services.http.HttpClient
 
client() - Method in class org.nanonative.nano.services.http.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.HttpClient
 
CONFIG_HTTP_CLIENT_FOLLOW_REDIRECTS - Static variable in class org.nanonative.nano.services.http.HttpClient
 
CONFIG_HTTP_CLIENT_MAX_RETRIES - Static variable in class org.nanonative.nano.services.http.HttpClient
 
CONFIG_HTTP_CLIENT_READ_TIMEOUT_MS - Static variable in class org.nanonative.nano.services.http.HttpClient
 
CONFIG_HTTP_CLIENT_TRUST_ALL - Static variable in class org.nanonative.nano.services.http.HttpClient
 
CONFIG_HTTP_CLIENT_TRUSTED_CA - Static variable in class org.nanonative.nano.services.http.HttpClient
 
CONFIG_HTTP_CLIENT_VERSION - Static variable in class org.nanonative.nano.services.http.HttpClient
 
CONFIG_KEYS - Static variable in class org.nanonative.nano.core.NanoBase
 
CONFIG_LOG_EXCLUDE_PATTERNS - Static variable in class org.nanonative.nano.services.logging.LogService
 
CONFIG_LOG_FORMATTER - Static variable in class org.nanonative.nano.services.logging.LogService
 
CONFIG_LOG_LEVEL - Static variable in class org.nanonative.nano.services.logging.LogService
 
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_CLIENT - Static variable in class org.nanonative.nano.services.http.HttpServer
 
CONFIG_SERVICE_HTTP_PORT - Static variable in class org.nanonative.nano.services.http.HttpServer
 
CONFIG_SERVICE_HTTPS_CA - Static variable in class org.nanonative.nano.services.http.HttpServer
 
CONFIG_SERVICE_HTTPS_CERT - Static variable in class org.nanonative.nano.services.http.HttpServer
 
CONFIG_SERVICE_HTTPS_CERTS - Static variable in class org.nanonative.nano.services.http.HttpServer
 
CONFIG_SERVICE_HTTPS_KEY - Static variable in class org.nanonative.nano.services.http.HttpServer
 
CONFIG_SERVICE_HTTPS_KTS - Static variable in class org.nanonative.nano.services.http.HttpServer
 
CONFIG_SERVICE_HTTPS_PASSWORD - Static variable in class org.nanonative.nano.services.http.HttpServer
 
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(TypeMapI<?>) - Method in class org.nanonative.nano.core.model.Service
Configures the service with the provided configuration.
configure(TypeMapI<?>, TypeMapI<?>) - Method in class org.nanonative.nano.core.model.Service
Configures the service with changes while maintaining merged state.
configure(TypeMapI<?>, TypeMapI<?>) - Method in class org.nanonative.nano.services.file.FileWatcher
 
configure(TypeMapI<?>, TypeMapI<?>) - Method in class org.nanonative.nano.services.http.HttpClient
 
configure(TypeMapI<?>, TypeMapI<?>) - Method in class org.nanonative.nano.services.http.HttpServer
 
configure(TypeMapI<?>, TypeMapI<?>) - Method in class org.nanonative.nano.services.logging.LogService
 
configure(TypeMapI<?>, TypeMapI<?>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
 
configureHttps(Context, HttpServer) - Static method in class org.nanonative.nano.services.http.HttpsHelper
Configures SSL/TLS for an existing HTTPS server.
CONNECTION - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
connectionTimeoutMs() - Method in class org.nanonative.nano.services.http.HttpClient
Returns the connection timeout in milliseconds configured for this HttpClient.
containsEvent() - Method in class org.nanonative.nano.helper.event.model.Event
Returns true if the resolved payload is itself an Event.
containsEvent(boolean) - Method in class org.nanonative.nano.helper.event.model.Event
Sets the internal flag indicating that the payload contains a nested event.
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_TYPE header.
contentType(String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpHeaders.CONTENT_TYPE header without specifying a Charset.
contentType(Charset, String...) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpHeaders.CONTENT_TYPE header with specifying a Charset.
contentType(Charset, ContentType...) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpHeaders.CONTENT_TYPE header with specifying a Charset.
contentType(ContentType...) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpHeaders.CONTENT_TYPE header without specifying a Charset.
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_TYPE header.
context - Variable in class org.nanonative.nano.core.model.Service
 
context - Variable in class org.nanonative.nano.core.NanoBase
 
context - Variable in class org.nanonative.nano.helper.event.model.Event
 
context() - Method in class org.nanonative.nano.core.model.Service
Gets the current context of the service.
context() - Method in class org.nanonative.nano.core.Nano
Returns the root Context.
context() - Method in class org.nanonative.nano.helper.event.model.Event
Returns the context associated with this event.
context(Class<?>) - Method in class org.nanonative.nano.core.Nano
Creates a Context specified class.
context(Context) - Method in class org.nanonative.nano.core.model.Service
Sets the context for this service.
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_LOG_QUEUE_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 Context for 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 TypeMap of headers.
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
 
createCorsResponse() - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject.
createCorsResponse(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject with CORS handling.
createCorsResponse(String, String) - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject with CORS handling.
createCorsResponse(String, String, String) - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject with CORS handling.
createCorsResponse(String, String, String, int) - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject with CORS handling.
createCorsResponse(String, String, String, int, boolean) - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject with CORS handling.
createCustomTrustedSslContext(Context, List<Path>) - Static method in class org.nanonative.nano.services.http.HttpsHelper
 
createdAtMs() - Method in class org.nanonative.nano.core.NanoBase
Retrieves the creation timestamp of the instance.
createdAtNs - Variable in class org.nanonative.nano.core.model.Service
 
createdAtNs - Variable in class org.nanonative.nano.core.NanoBase
 
createdAtNs() - Method in class org.nanonative.nano.core.model.Service
Gets the creation timestamp of the service.
createDefaultServer(Context) - Static method in class org.nanonative.nano.services.http.HttpsHelper
Creates a default HTTP server using the configured or fallback port.
createHttpsServer(Context) - Static method in class org.nanonative.nano.services.http.HttpsHelper
Creates an HTTPS server using the configured or fallback port.
createResponse() - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject.
createResponse(boolean) - Method in class org.nanonative.nano.services.http.model.HttpObject
Creates and returns a new instance of HttpObject.
createRootContext(Class<?>) - Static method in class org.nanonative.nano.core.model.Context
Creates a new root context with a unique trace ID.
createTrustedSslContext() - Static method in class org.nanonative.nano.services.http.HttpsHelper
 

D

D - Static variable in class org.nanonative.nano.helper.NanoUtils
 
DATE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
dateFormat - Variable in class org.nanonative.nano.services.logging.LogFormatterConsole
 
dateFormat - Variable in class org.nanonative.nano.services.logging.LogFormatterJson
 
DAV - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
debug(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
debug(Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
DEBUG - Enum constant in enum class org.nanonative.nano.services.logging.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
 
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.HttpServer
 
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_TYPE header.
equals(Object) - Method in record class org.nanonative.nano.helper.event.model.Channel
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.nanonative.nano.helper.event.model.Event
Two events are equal when their underlying map content is equal and they share the same channel, context, listener, and payload supplier.
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
Returns the most relevant error for this event.
error(Throwable) - Method in class org.nanonative.nano.helper.event.model.Event
Attaches an error to this event.
error(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
error(Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
ERROR - Enum constant in enum class org.nanonative.nano.services.logging.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<C,R> - Class in org.nanonative.nano.helper.event.model
Event container transporting payloads and metadata.
Event(Context, Channel<C, R>) - Constructor for class org.nanonative.nano.helper.event.model.Event
Constructs an instance of the Event class with specified payload, 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_CHANNELS - Static variable in class org.nanonative.nano.core.NanoBase
 
EVENT_CONFIG_CHANGE - Static variable in class org.nanonative.nano.core.model.Context
 
EVENT_FILE_CHANGE - Static variable in class org.nanonative.nano.services.file.FileWatcher
 
EVENT_HTTP_REQUEST - Static variable in class org.nanonative.nano.services.http.HttpServer
 
EVENT_HTTP_REQUEST_UNHANDLED - Static variable in class org.nanonative.nano.services.http.HttpServer
 
EVENT_ID_COUNTER - Static variable in class org.nanonative.nano.core.NanoBase
 
EVENT_LOGGING - Static variable in class org.nanonative.nano.services.logging.LogService
 
EVENT_METRIC_UPDATE - Static variable in class org.nanonative.nano.services.metric.logic.MetricService
 
EVENT_SEND_HTTP - Static variable in class org.nanonative.nano.services.http.HttpClient
 
EVENT_UNWATCH_FILE - Static variable in class org.nanonative.nano.services.file.FileWatcher
 
EVENT_WATCH_FILE - Static variable in class org.nanonative.nano.services.file.FileWatcher
 
eventCount - Variable in class org.nanonative.nano.core.NanoBase
 
eventCount() - Method in class org.nanonative.nano.core.NanoBase
Performs the eventCount operation.
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 HttpExchange for this HttpObject.
excludePatterns - Variable in class org.nanonative.nano.services.logging.LogService
 
executeScheduler(Supplier<Context>, ExRunnable, Scheduler, boolean) - Method in class org.nanonative.nano.core.NanoThreads
Executes the task.
ExFunction<T,R> - Interface in org.nanonative.nano.helper
 
exit(Context, int) - Method in class org.nanonative.nano.core.Nano
Performs the exit operation.
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.services.logging.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, String, String) - Method in class org.nanonative.nano.services.http.model.HttpObject
Stores a failure exception within the HTTP headers.
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.core.model.Context
Logs a message with the specified log level.
fatal(Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
FATAL - Enum constant in enum class org.nanonative.nano.services.logging.model.LogLevel
 
FileWatcher - Class in org.nanonative.nano.services.file
 
FileWatcher() - Constructor for class org.nanonative.nano.services.file.FileWatcher
 
filter(Predicate<Event<C, R>>) - Method in class org.nanonative.nano.helper.event.model.Event
Applies a predicate to this event and returns a Type wrapper containing either this event (when the predicate passes) or null.
findDefaultLinuxCaBundle() - Static method in class org.nanonative.nano.services.http.HttpsHelper
 
followRedirects() - Method in class org.nanonative.nano.services.http.HttpClient
Returns whether this HttpClient follows redirects.
format(LogRecord) - Method in class org.nanonative.nano.services.logging.LogFormatterConsole
Format a LogRecord into a string representation.
format(LogRecord) - Method in class org.nanonative.nano.services.logging.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.services.logging.LogFormatterConsole
 
formatter() - Method in class org.nanonative.nano.services.logging.LogService
 
formatter(Formatter) - Method in class org.nanonative.nano.services.logging.LogService
 
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
 
future() - Method in class org.nanonative.nano.core.model.NanoThread
 
future(Future<?>) - Method in class org.nanonative.nano.core.model.NanoThread
 

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 - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
 
getLogFormatter(String) - Static method in class org.nanonative.nano.services.logging.LogFormatRegister
 
getLogFormatter(String, Supplier<Formatter>) - Static method in class org.nanonative.nano.services.logging.LogFormatRegister
 
getThreadName(ExecutorService) - Static method in class org.nanonative.nano.helper.NanoUtils
 
GLOBAL_THREAD_POOL - Static variable in class org.nanonative.nano.core.model.NanoThread
 
gracefulShutdown(Context) - Method in class org.nanonative.nano.core.Nano
Performs the gracefulShutdown operation.
guessContentType(HttpObject, byte[]) - Static method in class org.nanonative.nano.services.http.model.HttpObject
 

H

H - Static variable in class org.nanonative.nano.helper.NanoUtils
 
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.helper.event.model.Channel
Returns a hash code value for this object.
hashCode() - Method in class org.nanonative.nano.helper.event.model.Event
 
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 HttpExchange if available, otherwise extracts it from the HttpHeaders.HOST header.
HOST - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
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
 
HttpClient() - Constructor for class org.nanonative.nano.services.http.HttpClient
 
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 HttpObject from a specified HttpExchange.
HttpServer - Class in org.nanonative.nano.services.http
 
HttpServer() - Constructor for class org.nanonative.nano.services.http.HttpServer
 
HttpsHelper - Class in org.nanonative.nano.services.http
Utility class for configuring and creating HTTP and HTTPS servers using the built-in Java HTTP server APIs.

I

id() - Method in class org.nanonative.nano.core.model.Scheduler
Performs the id operation.
id() - Method in record class org.nanonative.nano.helper.event.model.Channel
Returns the value of the id record component.
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
 
IGNORED_TRACE - Static variable in class org.nanonative.nano.helper.NanoUtils
 
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.core.model.Context
Logs a message with the specified log level.
info(Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
INFO - Enum constant in enum class org.nanonative.nano.services.logging.model.LogLevel
 
initialPlanned(LocalTime, DayOfWeek, ZoneId) - Static method in class org.nanonative.nano.core.NanoThreads
Calculates the first execution time after now for the given wall-clock time and day of week.
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 - Variable in class org.nanonative.nano.helper.event.model.Event
 
isAcknowledged() - Method in class org.nanonative.nano.helper.event.model.Event
Indicates whether the event has been acknowledged via Event.respond(Object) or Event.acknowledge().
isAsync() - Method in class org.nanonative.nano.helper.event.model.Event
Returns true if a response listener is installed (i.e., the event is asynchronous).
isBroadcast() - Method in class org.nanonative.nano.helper.event.model.Event
Returns whether this event is marked as broadcast.
isChannelIdAvailable(int) - Static method in record class org.nanonative.nano.helper.event.model.Channel
Checks if a Channel 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 HttpObject originates from a standard web browser based on the HttpHeaders.USER_AGENT header.
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 HttpObject originates from a mobile device based on the HttpHeaders.USER_AGENT header.
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
Checks if the service is ready to handle requests.
isReady() - Method in class org.nanonative.nano.core.NanoBase
Checks whether the instance is ready for operations.
isReadyState() - Method in class org.nanonative.nano.core.model.Service
Gets the ready state of the service as an AtomicBoolean.
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
 
jsonEscape(Object) - Method in class org.nanonative.nano.services.logging.LogFormatterJson
Escapes special characters for JSON compatibility.

K

kill(ExecutorService, long) - Method in class org.nanonative.nano.core.NanoThreads
Forces shutdown of an ExecutorService if 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.services.logging.LogService
 
level() - Method in class org.nanonative.nano.services.logging.LogService
 
level(Level) - Method in class org.nanonative.nano.services.logging.LogService
 
LINE_SEPARATOR - Static variable in class org.nanonative.nano.helper.NanoUtils
 
listener() - Method in class org.nanonative.nano.helper.event.model.Event
Returns the currently configured response listener, if any.
listeners - Variable in class org.nanonative.nano.core.model.NanoThread
 
listeners - Variable in class org.nanonative.nano.core.NanoBase
 
listeners() - Method in class org.nanonative.nano.core.NanoBase
Retrieves the registered event listeners.
listFiles(Path) - Static method in class org.nanonative.nano.helper.NanoUtils
 
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
 
log(Supplier<LogRecord>) - Method in class org.nanonative.nano.services.logging.LogService
 
log(LogRecord) - Method in class org.nanonative.nano.services.logging.LogService
 
log(LogLevel, Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
log(LogLevel, Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
LOG_FORMATTERS - Static variable in class org.nanonative.nano.services.logging.LogFormatRegister
 
LogFormatRegister - Class in org.nanonative.nano.services.logging
 
logFormatter - Variable in class org.nanonative.nano.services.logging.LogService
 
LogFormatterConsole - Class in org.nanonative.nano.services.logging
Formatter for logging messages to the console.
LogFormatterConsole() - Constructor for class org.nanonative.nano.services.logging.LogFormatterConsole
 
LogFormatterJson - Class in org.nanonative.nano.services.logging
A log formatter that outputs log records in JSON format.
LogFormatterJson() - Constructor for class org.nanonative.nano.services.logging.LogFormatterJson
 
LogLevel - Enum Class in org.nanonative.nano.services.logging.model
 
logService - Variable in class org.nanonative.nano.core.NanoBase
 
LogService - Class in org.nanonative.nano.services.logging
 
LogService() - Constructor for class org.nanonative.nano.services.logging.LogService
 

M

M - Static variable in class org.nanonative.nano.helper.NanoUtils
 
MAX_FORWARDS - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
MAX_LOG_NAME_LENGTH - Static variable in class org.nanonative.nano.services.logging.LogService
 
MESSAGE_KEY_VALUE_PATTERN - Static variable in class org.nanonative.nano.services.logging.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 Metric record 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 metricName record 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 MetricUpdate record class.
MO - Static variable in class org.nanonative.nano.helper.NanoUtils
 
MS - Static variable in class org.nanonative.nano.helper.NanoUtils
 
MULTIPART_FORM_DATA - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
 

N

name() - Method in class org.nanonative.nano.core.model.Service
Returns the simple name of the service class.
name() - Method in record class org.nanonative.nano.helper.event.model.Channel
Returns the value of the name record component.
name() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
Returns the value of the name record component.
nano - Variable in class org.nanonative.nano.core.model.Context
 
nano() - Method in class org.nanonative.nano.core.model.Context
Retrieves the Nano instance associated with this context.
Nano - Class in org.nanonative.nano.core
 
Nano(FunctionOrNull<Context, List<Service>>, Map<Object, Object>, String...) - Constructor for class org.nanonative.nano.core.Nano
Initializes Nano with a function to provide startup Service, configurations, and command-line arguments.
Nano(String[], FunctionOrNull<Context, List<Service>>) - Constructor for class org.nanonative.nano.core.Nano
Initializes Nano with a function to provide startup Service based on the context.
Nano(String[], Service...) - Constructor for class org.nanonative.nano.core.Nano
Initializes Nano with a function to provide startup Service based on the context.
Nano(Map<Object, Object>, FunctionOrNull<Context, List<Service>>) - Constructor for class org.nanonative.nano.core.Nano
Initializes Nano with configurations and startup Service.
Nano(Map<Object, Object>, Service...) - Constructor for class org.nanonative.nano.core.Nano
Initializes Nano with configurations and startup Service.
Nano(Service...) - Constructor for class org.nanonative.nano.core.Nano
Initializes Nano with a set of startup Service.
NANO_NAMES - Static variable in class org.nanonative.nano.helper.NanoUtils
 
NanoBase<T> - Class in org.nanonative.nano.core
The abstract base class for Nano framework 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.
nanoLogLevelOf(String) - Static method in enum class org.nanonative.nano.services.logging.model.LogLevel
 
nanoLogLevelOf(Level) - Static method in enum class org.nanonative.nano.services.logging.model.LogLevel
 
NanoServices<T> - Class in org.nanonative.nano.core
The abstract base class for Nano framework providing Service handling functionalities.
NanoServices(Map<Object, Object>, String...) - Constructor for class org.nanonative.nano.core.NanoServices
Initializes NanoServices with configurations and command-line arguments.
nanoThread(Context) - Method in class org.nanonative.nano.core.model.Service
Creates and configures a new NanoThread for this service.
NanoThread - Class in org.nanonative.nano.core.model
 
NanoThread() - Constructor for class org.nanonative.nano.core.model.NanoThread
 
NanoThreads<T> - Class in org.nanonative.nano.core
The abstract base class for Nano framework providing thread handling functionalities.
NanoThreads(Map<Object, Object>, String...) - Constructor for class org.nanonative.nano.core.NanoThreads
Initializes NanoThreads with 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.
newEvent(Channel<C, R>) - Method in class org.nanonative.nano.core.model.Context
Creates a new Event instance with the specified event payload.
newEvent(Channel<C, R>, Supplier<C>) - Method in class org.nanonative.nano.core.model.Context
Creates a new Event instance with the specified event payload.
nextPlanned(ZonedDateTime, LocalTime, DayOfWeek, ZoneId) - Static method in class org.nanonative.nano.core.NanoThreads
Calculates the next execution time after a previous planned run.
NS - Static variable in class org.nanonative.nano.helper.NanoUtils
 

O

OFF - Enum constant in enum class org.nanonative.nano.services.logging.model.LogLevel
 
onComplete(BiConsumer<NanoThread, Throwable>) - Method in class org.nanonative.nano.core.model.NanoThread
 
onEvent(Event<?, ?>) - Method in class org.nanonative.nano.core.model.Service
Processes incoming events for the service.
onEvent(Event<?, ?>) - Method in class org.nanonative.nano.services.file.FileWatcher
 
onEvent(Event<?, ?>) - Method in class org.nanonative.nano.services.http.HttpClient
 
onEvent(Event<?, ?>) - Method in class org.nanonative.nano.services.http.HttpServer
 
onEvent(Event<?, ?>) - Method in class org.nanonative.nano.services.logging.LogService
 
onEvent(Event<?, ?>) - Method in class org.nanonative.nano.services.metric.logic.MetricService
 
onFailure(Event<?, ?>) - Method in class org.nanonative.nano.core.model.Service
Handles service failures and errors.
onFailure(Event<?, ?>) - Method in class org.nanonative.nano.services.file.FileWatcher
 
onFailure(Event<?, ?>) - Method in class org.nanonative.nano.services.http.HttpClient
 
onFailure(Event<?, ?>) - Method in class org.nanonative.nano.services.http.HttpServer
 
onFailure(Event<?, ?>) - Method in class org.nanonative.nano.services.logging.LogService
 
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.model - package org.nanonative.nano.helper.event.model
 
org.nanonative.nano.services.file - package org.nanonative.nano.services.file
 
org.nanonative.nano.services.http - package org.nanonative.nano.services.http
 
org.nanonative.nano.services.http.model - package org.nanonative.nano.services.http.model
 
org.nanonative.nano.services.logging - package org.nanonative.nano.services.logging
 
org.nanonative.nano.services.logging.model - package org.nanonative.nano.services.logging.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-Origin header.
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.services.logging.LogFormatterConsole
 
parent() - Method in class org.nanonative.nano.core.model.Context
Retrieves the Context parent 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 HttpObject without 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.helper.event.model.Channel
Returns the value of the payload record component.
payload() - Method in class org.nanonative.nano.helper.event.model.Event
Returns the payload, resolving the supplier on first access and caching the result.
payload(Supplier<C>) - Method in class org.nanonative.nano.helper.event.model.Event
Sets the payload of the event.
payloadAck() - Method in class org.nanonative.nano.helper.event.model.Event
Acknowledges the event and returns the resolved payload.
payloadAckAsync(Consumer<C>) - Method in class org.nanonative.nano.helper.event.model.Event
Acknowledges first, then resolves the payload asynchronously and passes it to the consumer.
payloadAckOpt() - Method in class org.nanonative.nano.helper.event.model.Event
Acknowledges the event and returns the payload if present.
payloadAsync(Consumer<C>) - Method in class org.nanonative.nano.helper.event.model.Event
Resolves the payload asynchronously on the Context executor and passes it to the consumer.
payloadOpt() - Method in class org.nanonative.nano.helper.event.model.Event
Returns the resolved payload if present.
payloadRaw - Variable in class org.nanonative.nano.helper.event.model.Event
 
peek(Consumer<Event<C, R>>) - Method in class org.nanonative.nano.helper.event.model.Event
Invokes the given consumer with this event and returns this instance.
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.HttpServer
 
port() - Method in class org.nanonative.nano.services.http.model.HttpObject
Retrieves the host port from the HttpExchange if available, otherwise extracts it from the HttpHeaders.HOST header.
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
Performs the printActiveProfiles operation.
printParameters() - Method in class org.nanonative.nano.core.Nano
Prints the configurations that have been loaded into the Nano instance.
printSystemInfo() - Method in class org.nanonative.nano.core.Nano
Prints system information for diagnostic purposes.
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
 
put(Object, Object) - Method in class org.nanonative.nano.core.model.Context
Puts a key-value pair into the context.
PUT - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
 
putEntry(Map<String, String>, Object, Object) - Method in class org.nanonative.nano.services.logging.LogFormatterJson
Adds escaped and converted key-value pairs to the map.
putR(Object, Object) - Method in class org.nanonative.nano.core.model.Context
Associates the specified value with the specified key in this map.
putR(Object, Object) - Method in class org.nanonative.nano.helper.event.model.Event
Puts the key/value into the underlying map and returns this for fluent chaining.

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
 

R

random - Static variable in class org.nanonative.nano.helper.NanoUtils
 
RANGE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
readCertificate(Context, KeyStore) - Static method in class org.nanonative.nano.services.http.HttpsHelper
Reads an X.509 certificate from a file and inserts it into the given key store.
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 Context based on provided arguments.
readKey(Context, KeyStore, char[], Certificate) - Static method in class org.nanonative.nano.services.http.HttpsHelper
Reads a private key file (PEM or PKCS#8) and inserts it into the provided key store.
readKts(Context, char[], KeyStore, String) - Static method in class org.nanonative.nano.services.http.HttpsHelper
Loads all entries from an existing keystore into another keystore.
readProfiles(Context) - Static method in class org.nanonative.nano.helper.NanoUtils
 
readTimeoutMs - Variable in class org.nanonative.nano.services.http.HttpClient
 
readTimeoutMs() - Method in class org.nanonative.nano.services.http.HttpClient
Returns the read timeout in milliseconds configured for this HttpClient.
receiveEvent(Event<?, ?>) - Method in class org.nanonative.nano.core.model.Service
Processes received events and handles configuration changes.
reduceSte(T) - Static method in class org.nanonative.nano.helper.NanoUtils
 
REFERER - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
registerChannelId(String) - Static method in record class org.nanonative.nano.helper.event.model.Channel
Registers a new Channel with a given name if it does not already exist.
registerChannelId(String, Class<C>) - Method in class org.nanonative.nano.core.model.Context
Registers a new Channel with a given name if it does not already exist.
registerChannelId(String, Class<C>) - Static method in record class org.nanonative.nano.helper.event.model.Channel
Registers a new Channel with a given name if it does not already exist.
registerChannelId(String, Class<C>, Class<R>) - Method in class org.nanonative.nano.core.model.Context
Registers a new Channel with a given name if it does not already exist.
registerChannelId(String, Class<C>, Class<R>) - Static method in record class org.nanonative.nano.helper.event.model.Channel
Registers a new Channel 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.services.logging.LogFormatRegister
 
registerService(Service) - Method in class org.nanonative.nano.core.NanoServices
Registers a new service in the Nano framework.
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
 
resolveWallTime(LocalDate, LocalTime, ZoneId) - Static method in class org.nanonative.nano.core.NanoThreads
DST-safe wall time: pushes through gaps, picks the earlier offset in overlaps.
respond(Event<C, R>) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sends an HTTP response using the current HttpObject as the response context.
respond(Event<C, R>, UnaryOperator<HttpObject>) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sends an HTTP response using the current HttpObject as the response context.
respond(R) - Method in class org.nanonative.nano.helper.event.model.Event
Completes the event with a response and marks it as acknowledged.
response - Variable in class org.nanonative.nano.helper.event.model.Event
 
response() - Method in record class org.nanonative.nano.helper.event.model.Channel
Returns the value of the response record component.
response() - Method in class org.nanonative.nano.helper.event.model.Event
Returns the response value set via Event.respond(Object).
responseListener - Variable in class org.nanonative.nano.helper.event.model.Event
 
responseOf(HttpResponse<byte[]>, HttpObject) - Method in class org.nanonative.nano.services.http.HttpClient
 
responseOpt() - Method in class org.nanonative.nano.helper.event.model.Event
Returns the response as an Optional.
responseOpt(Class<T>) - Method in class org.nanonative.nano.helper.event.model.Event
Returns the response as an Optional only if it is compatible with type.
retries - Variable in class org.nanonative.nano.services.http.HttpClient
 
retries() - Method in class org.nanonative.nano.services.http.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(Supplier<Context>, ExRunnable) - Method in class org.nanonative.nano.core.model.NanoThread
 
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, DayOfWeek, ZoneId, BooleanSupplier) - Method in class org.nanonative.nano.core.NanoThreads
Core scheduling method for daily or weekly execution at a fixed wall-clock time.
run(Supplier<Context>, ExRunnable, LocalTime, DayOfWeek, 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 Service asynchronously.
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, DayOfWeek, ZoneId, BooleanSupplier) - Method in class org.nanonative.nano.core.model.Context
Core scheduling method for daily or weekly execution at a fixed wall-clock time.
run(ExRunnable, LocalTime, DayOfWeek, BooleanSupplier) - 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 Service to 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<Event<Object, Void>>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
Executes asynchronously and waits for all runnable to be ready
runAwaitR(Service...) - Method in class org.nanonative.nano.core.model.Context
Executes and waits for all Service to be ready
runAwaitR(ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
Executes asynchronously and waits for all Service to be ready
runAwaitRHandled(Consumer<Event<Object, Void>>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
Executes and waits for all Service to be ready
runDaily(Supplier<Context>, ExRunnable, LocalTime, BooleanSupplier) - Method in class org.nanonative.nano.core.NanoThreads
Executes a task daily at the specified wall-clock time in the server's default time zone until the stop condition returns true.
runDaily(ExRunnable, LocalTime...) - Method in class org.nanonative.nano.core.model.Context
Executes a task daily at the specified wall-clock time in the server's default time zone.
runDaily(ExRunnable, BooleanSupplier, LocalTime...) - Method in class org.nanonative.nano.core.model.Context
Executes a task daily at the specified wall-clock time in the server's default time zone until the stop condition returns true.
runHandled(Consumer<Event<Object, Void>>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
Executes one or multiple runnable asynchronously.
runR(Service...) - Method in class org.nanonative.nano.core.model.Context
Executes one or multiple Service asynchronously.
runR(ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
Executes one or multiple runnable asynchronously.
runReturnHandled(Consumer<Event<Object, Void>>, ExRunnable...) - Method in class org.nanonative.nano.core.model.Context
Executes one or multiple runnable asynchronously.
runWeekly(Supplier<Context>, ExRunnable, DayOfWeek, LocalTime, BooleanSupplier) - Method in class org.nanonative.nano.core.NanoThreads
Executes a task weekly at the given day of week and wall-clock time in the server's default time zone until the stop condition returns true.
runWeekly(ExRunnable, LocalTime, DayOfWeek...) - Method in class org.nanonative.nano.core.model.Context
Executes a task weekly at the given day of week and wall-clock time in the server's default time zone.
runWeekly(ExRunnable, LocalTime, BooleanSupplier, DayOfWeek...) - Method in class org.nanonative.nano.core.model.Context
Executes a task weekly at the given day of week and wall-clock time in the server's default time zone until the stop condition returns true.

S

S - Static variable in class org.nanonative.nano.helper.NanoUtils
 
sanitizeMetricName(String) - Method in class org.nanonative.nano.services.metric.model.MetricCache
 
scheduleOnce(Supplier<Context>, ExRunnable, Scheduler, BooleanSupplier, LocalTime, DayOfWeek, ZoneId, ZonedDateTime) - Method in class org.nanonative.nano.core.NanoThreads
Internal recursive scheduler: schedules the given task once, then reschedules itself for the next occurrence.
Scheduler - Class in org.nanonative.nano.core.model
Lightweight scheduler for deferred and periodic tasks.
Scheduler(String) - Constructor for class org.nanonative.nano.core.model.Scheduler
Creates a new Scheduler.
Scheduler(String, int, RejectedExecutionHandler) - Constructor for class org.nanonative.nano.core.model.Scheduler
Creates a new 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() - Method in class org.nanonative.nano.helper.event.model.Event
Sends the event to the Nano instance for processing.
send(int, HttpRequest, HttpObject, Consumer<HttpObject>) - Method in class org.nanonative.nano.services.http.HttpClient
 
send(HttpRequest) - Method in class org.nanonative.nano.services.http.HttpClient
Sends an HTTP request using the provided HttpObject or HttpRequest.
send(HttpRequest, Consumer<HttpObject>) - Method in class org.nanonative.nano.services.http.HttpClient
Sends an HTTP request using the provided HttpObject or HttpRequest.
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(Event<?, ?>) - 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.
sendEventR(Event<C, R>) - 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<?, ?>) - 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.
sendR() - Method in class org.nanonative.nano.helper.event.model.Event
Sends the event to the Nano instance for processing.
sendResponse(HttpExchange, HttpObject, HttpObject) - Method in class org.nanonative.nano.services.http.HttpServer
 
server - Variable in class org.nanonative.nano.services.http.HttpServer
 
server() - Method in class org.nanonative.nano.services.http.HttpServer
 
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 Service of a specified payload.
service(Class<S>) - Method in class org.nanonative.nano.core.NanoServices
Retrieves a Service of a specified payload.
Service - Class in org.nanonative.nano.core.model
Abstract base class for all services in the Nano framework.
Service() - Constructor for class org.nanonative.nano.core.model.Service
Creates a new Service instance and records its creation timestamp.
serviceOpt(Class<S>) - Method in class org.nanonative.nano.core.NanoServices
Retrieves a Service of a specified payload.
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 payload.
services(Class<S>) - Method in class org.nanonative.nano.core.NanoServices
Retrieves a list of services of a specified payload.
setError(AtomicBoolean) - Static method in class org.nanonative.nano.services.http.HttpServer
 
shutdown(Class<?>) - Method in class org.nanonative.nano.core.Nano
Shuts down the Nano instance, ensuring all services and threads are gracefully terminated.
shutdown(Context) - Method in class org.nanonative.nano.core.Nano
Shuts down the Nano instance, 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 Service gracefully.
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() - Method in class org.nanonative.nano.core.model.Service
Starts the service.
start() - Method in class org.nanonative.nano.services.file.FileWatcher
 
start() - Method in class org.nanonative.nano.services.http.HttpClient
 
start() - Method in class org.nanonative.nano.services.http.HttpServer
 
start() - Method in class org.nanonative.nano.services.logging.LogService
 
start() - Method in class org.nanonative.nano.services.metric.logic.MetricService
 
startServicesAndLogger(FunctionOrNull<Context, List<Service>>) - Method in class org.nanonative.nano.core.Nano
Starts and initializes required components.
STARTUP_LOCK - Static variable in class org.nanonative.nano.services.http.HttpServer
 
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() - Method in class org.nanonative.nano.core.model.Service
Stops the service gracefully.
stop() - Method in class org.nanonative.nano.services.file.FileWatcher
 
stop() - Method in class org.nanonative.nano.services.http.HttpClient
 
stop() - Method in class org.nanonative.nano.services.http.HttpServer
 
stop() - Method in class org.nanonative.nano.services.logging.LogService
 
stop() - Method in class org.nanonative.nano.services.metric.logic.MetricService
 
stop(Class<?>) - Method in class org.nanonative.nano.core.Nano
Initiates the shutdown process for the Nano instance.
stop(Class<?>) - Method in class org.nanonative.nano.core.NanoBase
Initiates the shutdown process for the Nano instance.
stop(Context) - Method in class org.nanonative.nano.core.Nano
Initiates the shutdown process for the Nano instance.
stop(Context) - Method in class org.nanonative.nano.core.NanoBase
Initiates the shutdown process for the Nano instance.
subscribeError(Consumer<Event<Object, Void>>) - Method in class org.nanonative.nano.core.model.Context
Registers for global error handling.
subscribeError(Consumer<Event<Object, Void>>) - Method in class org.nanonative.nano.core.NanoBase
Registers for global error handling.
subscribeError(Channel<C, R>, Consumer<Event<C, R>>) - Method in class org.nanonative.nano.core.model.Context
Registers for global error handling.
subscribeError(Channel<C, R>, Consumer<Event<C, R>>) - Method in class org.nanonative.nano.core.NanoBase
Registers for global error handling.
subscribeEvent(Channel<C, R>, BiConsumer<? super Event<C, R>, C>) - Method in class org.nanonative.nano.core.NanoBase
Registers an event listener with a typed payload.
subscribeEvent(Channel<C, R>, BiConsumer<Event<C, R>, C>) - Method in class org.nanonative.nano.core.model.Context
Registers an event listener with a typed payload.
subscribeEvent(Channel<C, R>, Consumer<? super Event<C, R>>) - Method in class org.nanonative.nano.core.NanoBase
Registers an event listener with a typed payload.
subscribeEvent(Channel<C, R>, Consumer<Event<C, R>>) - Method in class org.nanonative.nano.core.model.Context
Registers an event listener with a typed payload.
subscribeEvent(Channel<C, R>, Predicate<Event<C, R>>, Consumer<Event<C, R>>) - Method in class org.nanonative.nano.core.model.Context
Registers an event listener with a typed payload.
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 tags record component.
tags() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
Returns the value of the tags record component.
TE - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
TEXT_CSS - Enum constant in enum class org.nanonative.nano.services.http.model.ContentType
 
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
 
threadsOf(Context, Service...) - Static method in class org.nanonative.nano.core.model.Service
Creates NanoThreads for multiple services.
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.services.logging.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
Performs the toString operation.
toString() - Method in class org.nanonative.nano.core.Nano
Performs the toString operation.
toString() - Method in record class org.nanonative.nano.helper.event.model.Channel
Performs the toString operation.
toString() - Method in class org.nanonative.nano.helper.event.model.Event
Returns a JSON-like representation with selected fields for diagnostics.
toString() - Method in class org.nanonative.nano.services.file.FileWatcher
 
toString() - Method in class org.nanonative.nano.services.http.HttpClient
 
toString() - Method in class org.nanonative.nano.services.http.HttpServer
 
toString() - Method in class org.nanonative.nano.services.http.model.HttpObject
 
toString() - Method in class org.nanonative.nano.services.logging.LogService
 
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.core.model.Context
Logs a message with the specified log level.
trace(Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
TRACE - Enum constant in enum class org.nanonative.nano.services.http.model.HttpMethod
 
TRACE - Enum constant in enum class org.nanonative.nano.services.logging.model.LogLevel
 
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 type record component.
TYPE_JCEKS - Static variable in class org.nanonative.nano.services.http.HttpsHelper
 
TYPE_JKS - Static variable in class org.nanonative.nano.services.http.HttpsHelper
 
TYPE_PKCS_12 - Static variable in class org.nanonative.nano.services.http.HttpsHelper
 
TYPE_TLS - Static variable in class org.nanonative.nano.services.http.HttpsHelper
 
TYPE_X_509 - Static variable in class org.nanonative.nano.services.http.HttpsHelper
 

U

UNIT_NS - Static variable in class org.nanonative.nano.helper.NanoUtils
 
UNIT_SY - Static variable in class org.nanonative.nano.helper.NanoUtils
 
unregisterService(Context, Service) - Method in class org.nanonative.nano.core.NanoServices
Unregisters a Service from the Nano framework and stops it.
unsubscribeEvent(int, Consumer<Event<C, R>>) - Method in class org.nanonative.nano.core.model.Context
Removes a registered event listener for a specific event payload.
unsubscribeEvent(int, Consumer<Event<C, R>>) - Method in class org.nanonative.nano.core.NanoBase
Removes a registered event listener for a specific event payload.
unsubscribeEvent(Channel<C, R>, Consumer<Event<C, R>>) - Method in class org.nanonative.nano.core.model.Context
Removes a registered event listener for a specific event payload.
unwatch(Path) - Method in class org.nanonative.nano.services.file.FileWatcher
 
updateArch(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
 
updateDeadlockMetrics(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(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(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(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
 
US - Static variable in class org.nanonative.nano.helper.NanoUtils
 
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_AGENT header from the HttpObject.
userAgent(String) - Method in class org.nanonative.nano.services.http.model.HttpObject
Sets the HttpHeaders.USER_AGENT header for the HttpObject.

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 value record component.
value() - Method in record class org.nanonative.nano.services.metric.model.MetricUpdate
Returns the value of the value record component.
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.logging.model.LogLevel
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.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.logging.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.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.HttpClient
Returns the HttpClient.Version used by this HttpClient.
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
 

W

W - Static variable in class org.nanonative.nano.helper.NanoUtils
 
waitFor(Runnable, NanoThread...) - Static method in class org.nanonative.nano.core.model.NanoThread
Waits for all provided NanoThread instances to complete execution and optionally executes a Runnable once all threads have finished.
waitFor(NanoThread...) - Static method in class org.nanonative.nano.core.model.NanoThread
Blocks until all provided NanoThread instances 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 Nano instance is no longer ready.
warn(Throwable, Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
warn(Supplier<String>, Object...) - Method in class org.nanonative.nano.core.model.Context
Logs a message with the specified log level.
WARN - Enum constant in enum class org.nanonative.nano.services.logging.model.LogLevel
 
WARNING - Static variable in class org.nanonative.nano.services.http.model.HttpHeaders
 
watch(Path) - Method in class org.nanonative.nano.services.file.FileWatcher
 
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
 

Y

Y - Static variable in class org.nanonative.nano.helper.NanoUtils
 
A B C D E F G H I J K L M N O P Q R S T U V W Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form