Interface | Description |
---|---|
ServiceMessageHandler |
Interface used to receive service request message.
|
Class | Description |
---|---|
Discovery |
Discovery is a utility class to help discover services by executing Ping, Info and Stats requests
You are required to provide a connection.
|
Endpoint |
Endpoint encapsulates the name, subject and metadata for a
ServiceEndpoint . |
Endpoint.Builder |
Build an Endpoint using a fluent builder.
|
EndpointStats |
Endpoints stats contains various stats and custom data for an endpoint.
|
Group |
Group is way to organize endpoints by serving as a common prefix to all endpoints registered in it.
|
InfoResponse |
Info response class forms the info json payload, for example:
{"id":"JlkwZvmHAXCQGwwxiPwaBJ","name":"MyService","version":"0.0.1","endpoints":[{"name":"MyEndpoint","subject":"myend"}],"type":"io.nats.micro.v1.info_response"} |
PingResponse |
Ping response class forms the ping json payload, for example:
{"id":"JlkwZvmHAXCQGwwxiPwaBJ","name":"MyService","version":"0.0.1","type":"io.nats.micro.v1.ping_response"} |
Service |
The Services Framework introduces a higher-level API for implementing services with NATS.
|
ServiceBuilder |
Build a Service using a fluent builder.
|
ServiceEndpoint |
The ServiceEndpoint represents the working
Endpoint
It allows the endpoint to be grouped.
It is where you can define the handler that will respond to incoming requests
It allows you to define it's dispatcher if desired giving granularity to threads running subscribers
It gives you a hook to provide custom data for the EndpointStats
|
ServiceEndpoint.Builder |
Build an ServiceEndpoint using a fluent builder.
|
ServiceMessage |
Service Message is service specific object that exposes the service relevant parts of a NATS Message.
|
ServiceResponse |
Base class for service responses Info, Ping and Stats
|
StatsResponse |
Stats response class forms the stats json payload, for example:
{
"id": "ZP1oVevzLGu4CBORMXKKke",
"name": "Service1",
"version": "0.0.1",
"endpoints": [{
"name": "SortEndpointAscending",
"subject": "sort.ascending",
"num_requests": 1,
"processing_time": 538900,
"average_processing_time": 538900,
"started": "2023-08-15T13:51:41.318000000Z"
}, {
"name": "SortEndpointDescending",
"subject": "sort.descending",
"num_requests": 1,
"processing_time": 88400,
"average_processing_time": 88400,
"started": "2023-08-15T13:51:41.318000000Z"
}, {
"name": "EchoEndpoint",
"subject": "echo",
"num_requests": 5,
"processing_time": 1931600,
"average_processing_time": 386320,
"data": {
"idata": 2,
"sdata": "s-996409223"
},
"started": "2023-08-15T13:51:41.318000000Z"
}],
"started": "2023-08-15T13:51:41.319000000Z",
"type": "io.nats.micro.v1.stats_response"
}
|