Uses of Interface
org.forgerock.util.promise.Promise
-
Packages that use Promise Package Description org.forgerock.audit Package contains the AuditService.org.forgerock.audit.events.handlers This package contains the defaultAuditEventHandlers
.org.forgerock.audit.events.handlers.buffering This package contains the batch publisher and its various implementations.org.forgerock.audit.handlers.csv This package contains the default AuditEventHandler implementations.org.forgerock.audit.handlers.elasticsearch This package contains the ElasticsearchAuditEventHandler
implementation.org.forgerock.audit.handlers.jms This package contains a JMS AuditEventHandler implementation.org.forgerock.audit.handlers.json This package contains the JSON-fileAuditEventHandler
implementation.org.forgerock.audit.handlers.json.stdout This package contains the JSON-stdoutAuditEventHandler
implementation.org.forgerock.audit.handlers.splunk This package contains the audit handler implementation for Splunk.org.forgerock.audit.handlers.syslog This package contains a Syslog AuditEventHandler implementation.org.forgerock.json Provides an API for the traversal and manipulation of JSON object model structures in Java.org.forgerock.json.resource Classes and interfaces for core types including connections, request handlers, resources, and their exceptions.org.forgerock.monitoring Common utility classes for monitoring.org.forgerock.monitoring.http Common utility classes for monitoring.org.forgerock.opendj.ldap Classes and interfaces for core types including connections, entries, and attributes.org.forgerock.opendj.rest2ldap APIs for implementing REST to LDAP gateways.org.forgerock.secrets Provides a unified API for accessing secrets of various kinds.org.forgerock.secrets.propertyresolver Provides aSecretStore
implementation that loads secrets from a Common ConfigurationPropertyResolver
and then decodes it with aSecretPropertyFormat
.org.forgerock.util Provides common interfaces and classes.org.forgerock.util.promise An implementation of thePromise
API in Java.org.opends.server.protocols.http Contains the implementation for the Directory Server connection handler that is responsible for interacting with clients using HTTP. -
-
Uses of Promise in org.forgerock.audit
Methods in org.forgerock.audit that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
AuditService. handleAction(org.forgerock.services.context.Context context, ActionRequest request)
Audit service may support actions on the service itself or on handlers.Promise<ActionResponse,ResourceException>
AuditServiceProxy. handleAction(org.forgerock.services.context.Context context, ActionRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handleCreate(org.forgerock.services.context.Context context, CreateRequest request)
Propagates the audit event to theAuditEventHandler
objects that have been registered for the audit event topic.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleCreate(org.forgerock.services.context.Context context, CreateRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handleDelete(org.forgerock.services.context.Context context, DeleteRequest request)
Audit service does not support changing audit entries.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleDelete(org.forgerock.services.context.Context context, DeleteRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handlePatch(org.forgerock.services.context.Context context, PatchRequest request)
Audit service does not support changing audit entries.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handlePatch(org.forgerock.services.context.Context context, PatchRequest request)
Promise<QueryResponse,ResourceException>
AuditService. handleQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Performs the query on the specified object and returns the associated results.Promise<QueryResponse,ResourceException>
AuditServiceProxy. handleQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
AuditService. handleRead(org.forgerock.services.context.Context context, ReadRequest request)
Gets an object from the audit logs by identifier.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleRead(org.forgerock.services.context.Context context, ReadRequest request)
Promise<ResourceResponse,ResourceException>
AuditService. handleUpdate(org.forgerock.services.context.Context context, UpdateRequest request)
Audit service does not support changing audit entries.Promise<ResourceResponse,ResourceException>
AuditServiceProxy. handleUpdate(org.forgerock.services.context.Context context, UpdateRequest request)
-
Uses of Promise in org.forgerock.audit.events.handlers
Methods in org.forgerock.audit.events.handlers that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
AuditEventHandler. handleAction(org.forgerock.services.context.Context context, String topic, ActionRequest request)
Performs an action.Promise<ActionResponse,ResourceException>
AuditEventHandlerBase. handleAction(org.forgerock.services.context.Context context, String topic, ActionRequest request)
Promise<ResourceResponse,ResourceException>
AuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Publishes an event to the provided topic.Promise<ResourceResponse,ResourceException>
NoOpAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
AuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Query some events from the provided topic.Promise<QueryResponse,ResourceException>
NoOpAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
AuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
Reads an event with the provided resource id from the provided topic.Promise<ResourceResponse,ResourceException>
NoOpAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.events.handlers.buffering
Methods in org.forgerock.audit.events.handlers.buffering that return Promise Modifier and Type Method Description Promise<Void,BatchException>
BatchConsumer. publishBatch(String payload)
Publishes the batch payload. -
Uses of Promise in org.forgerock.audit.handlers.csv
Methods in org.forgerock.audit.handlers.csv that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
CsvAuditEventHandler. handleAction(org.forgerock.services.context.Context context, String topic, ActionRequest request)
Promise<ResourceResponse,ResourceException>
CsvAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Create a csv audit log entry.Promise<QueryResponse,ResourceException>
CsvAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Perform a query on the csv audit log.Promise<ResourceResponse,ResourceException>
CsvAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
Read from the csv audit log. -
Uses of Promise in org.forgerock.audit.handlers.elasticsearch
Methods in org.forgerock.audit.handlers.elasticsearch that return Promise Modifier and Type Method Description Promise<Void,BatchException>
ElasticsearchAuditEventHandler. publishBatch(String payload)
Publishes a Bulk API payload to Elasticsearch.Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
protected Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. publishSingleEvent(String topic, JsonValue event)
Publishes a single event to the provided topic.Promise<QueryResponse,ResourceException>
ElasticsearchAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Queries the Elasticsearch Search API for audit events.Promise<ResourceResponse,ResourceException>
ElasticsearchAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.jms
Methods in org.forgerock.audit.handlers.jms that return Promise Modifier and Type Method Description Promise<Void,BatchException>
JmsAuditEventHandler. publishBatch(String payload)
Promise<ResourceResponse,ResourceException>
JmsAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
JmsAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler)
Returns NotSupportedException as query is not implemented for JMS.Promise<ResourceResponse,ResourceException>
JmsAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
Returns NotSupportedException as read is not implemented for JMS. -
Uses of Promise in org.forgerock.audit.handlers.json
Methods in org.forgerock.audit.handlers.json that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
JsonAuditEventHandler. handleAction(org.forgerock.services.context.Context context, String topic, ActionRequest request)
Promise<ResourceResponse,ResourceException>
JsonAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
JsonAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
JsonAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.json.stdout
Methods in org.forgerock.audit.handlers.json.stdout that return Promise Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
JsonStdoutAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
JsonStdoutAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
JsonStdoutAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.splunk
Methods in org.forgerock.audit.handlers.splunk that return Promise Modifier and Type Method Description Promise<Void,BatchException>
SplunkAuditEventHandler. publishBatch(String payload)
Promise<ResourceResponse,ResourceException>
SplunkAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
SplunkAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest query, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
SplunkAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.audit.handlers.syslog
Methods in org.forgerock.audit.handlers.syslog that return Promise Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
SyslogAuditEventHandler. publishEvent(org.forgerock.services.context.Context context, String topic, JsonValue event)
Promise<QueryResponse,ResourceException>
SyslogAuditEventHandler. queryEvents(org.forgerock.services.context.Context context, String topic, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler)
Promise<ResourceResponse,ResourceException>
SyslogAuditEventHandler. readEvent(org.forgerock.services.context.Context context, String topic, String resourceId)
-
Uses of Promise in org.forgerock.json
Methods in org.forgerock.json that return Promise Modifier and Type Method Description <V,E extends Exception>
Promise<V,E>JsonValue. asAsync(AsyncFunction<JsonValue,V,E> transformFunction)
Returns the JSON value as a promised object whose type (and value) is specified by a transformation function. -
Uses of Promise in org.forgerock.json.resource
Methods in org.forgerock.json.resource that return Promise Modifier and Type Method Description Promise<ActionResponse,ResourceException>
AbstractConnectionWrapper. actionAsync(org.forgerock.services.context.Context context, ActionRequest request)
Asynchronously performs an action against a specific resource, or set of resources.Promise<ActionResponse,ResourceException>
Connection. actionAsync(org.forgerock.services.context.Context context, ActionRequest request)
Asynchronously performs an action against a specific resource, or set of resources.default Promise<ActionResponse,ResourceException>
CollectionResourceProvider. actionCollection(org.forgerock.services.context.Context context, ActionRequest request)
Performs the providedaction
against the resource collection.Promise<ActionResponse,ResourceException>
MemoryBackend. actionCollection(org.forgerock.services.context.Context context, ActionRequest request)
Performs the providedaction
against the resource collection.default Promise<ActionResponse,ResourceException>
CollectionResourceProvider. actionInstance(org.forgerock.services.context.Context context, String resourceId, ActionRequest request)
Performs the providedaction
against a resource within the collection.Promise<ActionResponse,ResourceException>
MemoryBackend. actionInstance(org.forgerock.services.context.Context context, String id, ActionRequest request)
Performs the providedaction
against a resource within the collection.default Promise<ActionResponse,ResourceException>
SingletonResourceProvider. actionInstance(org.forgerock.services.context.Context context, ActionRequest request)
Performs the providedaction
against the single resource instance.Promise<ActionResponse,ResourceException>
ActionResponse. asPromise()
Return this response as a result Promise.Promise<QueryResponse,ResourceException>
QueryResponse. asPromise()
Return this response as a result Promise.<V> Promise<V,ResourceException>
ResourceException. asPromise()
Return this ResourceException as a Promise.Promise<ResourceResponse,ResourceException>
ResourceResponse. asPromise()
Return this response as a result Promise.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. createAsync(org.forgerock.services.context.Context context, CreateRequest request)
Asynchronously adds a new JSON resource.Promise<ResourceResponse,ResourceException>
Connection. createAsync(org.forgerock.services.context.Context context, CreateRequest request)
Asynchronously adds a new JSON resource.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. createInstance(org.forgerock.services.context.Context context, CreateRequest request)
Adds
a new resource instance to the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. createInstance(org.forgerock.services.context.Context context, CreateRequest request)
Adds
a new resource instance to the collection.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. deleteAsync(org.forgerock.services.context.Context context, DeleteRequest request)
Asynchronously deletes a JSON resource.Promise<ResourceResponse,ResourceException>
Connection. deleteAsync(org.forgerock.services.context.Context context, DeleteRequest request)
Asynchronously deletes a JSON resource.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. deleteInstance(org.forgerock.services.context.Context context, String resourceId, DeleteRequest request)
Removes
a resource instance from the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. deleteInstance(org.forgerock.services.context.Context context, String id, DeleteRequest request)
Removes
a resource instance from the collection.Promise<ActionResponse,ResourceException>
Filter. filterAction(org.forgerock.services.context.Context context, ActionRequest request, RequestHandler next)
Filters an action request.Promise<ActionResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterAction(org.forgerock.services.context.Context context, ActionRequest request, RequestHandler next)
Promise<ActionResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterAction(org.forgerock.services.context.Context context, ActionRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterCreate(org.forgerock.services.context.Context context, CreateRequest request, RequestHandler next)
Filters a create request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterCreate(org.forgerock.services.context.Context context, CreateRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterCreate(org.forgerock.services.context.Context context, CreateRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterDelete(org.forgerock.services.context.Context context, DeleteRequest request, RequestHandler next)
Filters a delete request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterDelete(org.forgerock.services.context.Context context, DeleteRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterDelete(org.forgerock.services.context.Context context, DeleteRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterPatch(org.forgerock.services.context.Context context, PatchRequest request, RequestHandler next)
Filters a patch request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterPatch(org.forgerock.services.context.Context context, PatchRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterPatch(org.forgerock.services.context.Context context, PatchRequest request, RequestHandler next)
Promise<QueryResponse,ResourceException>
Filter. filterQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next)
Filters a query request.Promise<QueryResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next)
Promise<QueryResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterRead(org.forgerock.services.context.Context context, ReadRequest request, RequestHandler next)
Filters a read request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterRead(org.forgerock.services.context.Context context, ReadRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterRead(org.forgerock.services.context.Context context, ReadRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
Filter. filterUpdate(org.forgerock.services.context.Context context, UpdateRequest request, RequestHandler next)
Filters an update request.Promise<ResourceResponse,ResourceException>
ResourceApiVersionRoutingFilter. filterUpdate(org.forgerock.services.context.Context context, UpdateRequest request, RequestHandler next)
Promise<ResourceResponse,ResourceException>
ResourceApiVersionSpecificationFilter. filterUpdate(org.forgerock.services.context.Context context, UpdateRequest request, RequestHandler next)
Promise<Connection,ResourceException>
ConnectionFactory. getConnectionAsync()
Asynchronously obtains a connection to the JSON resource provider associated with this connection factory.Promise<ActionResponse,ResourceException>
FilterChain. handleAction(org.forgerock.services.context.Context context, ActionRequest request)
default Promise<ActionResponse,ResourceException>
RequestHandler. handleAction(org.forgerock.services.context.Context context, ActionRequest request)
Handles performing an action on a resource, and optionally returns an associated result.Promise<ActionResponse,ResourceException>
Router. handleAction(org.forgerock.services.context.Context context, ActionRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handleCreate(org.forgerock.services.context.Context context, CreateRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleCreate(org.forgerock.services.context.Context context, CreateRequest request)
Adds a new JSON resource, returning aPromise
that will be completed when the resource has been added.Promise<ResourceResponse,ResourceException>
Router. handleCreate(org.forgerock.services.context.Context context, CreateRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handleDelete(org.forgerock.services.context.Context context, DeleteRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleDelete(org.forgerock.services.context.Context context, DeleteRequest request)
Deletes a JSON resource, returning aPromise
that will be completed when the resource has been deleted.Promise<ResourceResponse,ResourceException>
Router. handleDelete(org.forgerock.services.context.Context context, DeleteRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handlePatch(org.forgerock.services.context.Context context, PatchRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handlePatch(org.forgerock.services.context.Context context, PatchRequest request)
Updates a JSON resource by applying a set of changes to its existing content, returning aPromise
that will be completed when the resource has been updated.Promise<ResourceResponse,ResourceException>
Router. handlePatch(org.forgerock.services.context.Context context, PatchRequest request)
Promise<QueryResponse,ResourceException>
FilterChain. handleQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
default Promise<QueryResponse,ResourceException>
RequestHandler. handleQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Searches for all JSON resources matching a user specified set of criteria, returning aPromise
that will be completed when the search has completed.Promise<QueryResponse,ResourceException>
Router. handleQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
FilterChain. handleRead(org.forgerock.services.context.Context context, ReadRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleRead(org.forgerock.services.context.Context context, ReadRequest request)
Reads a JSON resource, returning aPromise
that will be completed when the resource has been read.Promise<ResourceResponse,ResourceException>
Router. handleRead(org.forgerock.services.context.Context context, ReadRequest request)
Promise<ResourceResponse,ResourceException>
FilterChain. handleUpdate(org.forgerock.services.context.Context context, UpdateRequest request)
default Promise<ResourceResponse,ResourceException>
RequestHandler. handleUpdate(org.forgerock.services.context.Context context, UpdateRequest request)
Updates a JSON resource by replacing its existing content with new content, returning aPromise
that will be completed when the resource has been updated.Promise<ResourceResponse,ResourceException>
Router. handleUpdate(org.forgerock.services.context.Context context, UpdateRequest request)
Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. patchAsync(org.forgerock.services.context.Context context, PatchRequest request)
Asynchronously updates a JSON resource by applying a set of changes to its existing content.Promise<ResourceResponse,ResourceException>
Connection. patchAsync(org.forgerock.services.context.Context context, PatchRequest request)
Asynchronously updates a JSON resource by applying a set of changes to its existing content.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. patchInstance(org.forgerock.services.context.Context context, String resourceId, PatchRequest request)
Patches
an existing resource within the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. patchInstance(org.forgerock.services.context.Context context, String id, PatchRequest request)
Patches
an existing resource within the collection.default Promise<ResourceResponse,ResourceException>
SingletonResourceProvider. patchInstance(org.forgerock.services.context.Context context, PatchRequest request)
Patches
the single resource instance.Promise<QueryResponse,ResourceException>
AbstractConnectionWrapper. queryAsync(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Asynchronously searches for all JSON resources matching a user specified set of criteria, and returns aPromise
that will be completed with the results of the search.Promise<QueryResponse,ResourceException>
Connection. queryAsync(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Asynchronously searches for all JSON resources matching a user specified set of criteria, and returns aPromise
that will be completed with the results of the search.default Promise<QueryResponse,ResourceException>
CollectionResourceProvider. queryCollection(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Searches
the collection for all resources which match the query request criteria.Promise<QueryResponse,ResourceException>
MemoryBackend. queryCollection(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Searches
the collection for all resources which match the query request criteria.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. readAsync(org.forgerock.services.context.Context context, ReadRequest request)
Asynchronously reads a JSON resource.Promise<ResourceResponse,ResourceException>
Connection. readAsync(org.forgerock.services.context.Context context, ReadRequest request)
Asynchronously reads a JSON resource.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. readInstance(org.forgerock.services.context.Context context, String resourceId, ReadRequest request)
Reads
an existing resource within the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. readInstance(org.forgerock.services.context.Context context, String id, ReadRequest request)
Reads
an existing resource within the collection.default Promise<ResourceResponse,ResourceException>
SingletonResourceProvider. readInstance(org.forgerock.services.context.Context context, ReadRequest request)
Reads
the single resource instance.Promise<ResourceResponse,ResourceException>
AbstractConnectionWrapper. updateAsync(org.forgerock.services.context.Context context, UpdateRequest request)
Asynchronously updates a JSON resource by replacing its existing content with new content.Promise<ResourceResponse,ResourceException>
Connection. updateAsync(org.forgerock.services.context.Context context, UpdateRequest request)
Asynchronously updates a JSON resource by replacing its existing content with new content.default Promise<ResourceResponse,ResourceException>
CollectionResourceProvider. updateInstance(org.forgerock.services.context.Context context, String resourceId, UpdateRequest request)
Updates
an existing resource within the collection.Promise<ResourceResponse,ResourceException>
MemoryBackend. updateInstance(org.forgerock.services.context.Context context, String id, UpdateRequest request)
Updates
an existing resource within the collection.default Promise<ResourceResponse,ResourceException>
SingletonResourceProvider. updateInstance(org.forgerock.services.context.Context context, UpdateRequest request)
Updates
the single resource instance. -
Uses of Promise in org.forgerock.monitoring
Methods in org.forgerock.monitoring that return Promise Modifier and Type Method Description Promise<QueryResponse,ResourceException>
DropwizardMetricsCollectionResourceProvider. queryCollection(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
DropwizardMetricsCollectionResourceProvider. readInstance(org.forgerock.services.context.Context context, String resourceId, ReadRequest request)
-
Uses of Promise in org.forgerock.monitoring.http
Methods in org.forgerock.monitoring.http that return Promise Modifier and Type Method Description Promise<org.forgerock.http.protocol.Response,NeverThrowsException>
PrometheusHandler. handle(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)
-
Uses of Promise in org.forgerock.opendj.ldap
Subinterfaces of Promise in org.forgerock.opendj.ldap Modifier and Type Interface Description interface
LdapPromise<S>
A handle which can be used to retrieve the Result of an asynchronous Request.Methods in org.forgerock.opendj.ldap that return Promise Modifier and Type Method Description Promise<Connection,LdapException>
ConnectionFactory. getConnectionAsync()
Asynchronously obtains a connection to the Directory Server associated with this connection factory.Promise<Connection,LdapException>
LdapConnectionFactory. getConnectionAsync()
static <V,E extends Exception>
Promise<V,E>Utils. toPromise(Maybe<V> maybe, Function<Throwable,E> exceptionConverter)
Transforms a Maybe into a Promise.static <V,E extends Exception>
Promise<V,E>Utils. toPromise(Single<V> single, Function<Throwable,E> exceptionConverter)
Transforms a Single into a Promise.static <V> Promise<V,NeverThrowsException>
Utils. toPromiseNoError(Single<V> single)
Transforms a Single into a Promise which do not throws exceptions.Method parameters in org.forgerock.opendj.ldap with type arguments of type Promise Modifier and Type Method Description static <V,E extends Exception>
Maybe<V>Utils. toMaybe(Callable<Promise<V,E>> callable)
Transforms a Promise into a Maybe.static <V,E extends Exception>
Single<V>Utils. toSingle(Callable<Promise<V,E>> callable)
Transforms a Promise into a Single. -
Uses of Promise in org.forgerock.opendj.rest2ldap
Methods in org.forgerock.opendj.rest2ldap that return Promise Modifier and Type Method Description Promise<org.forgerock.http.protocol.Response,NeverThrowsException>
ErrorLoggerFilter. filter(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request, org.forgerock.http.Handler next)
Promise<ActionResponse,ResourceException>
DescribableRequestHandler. handleAction(org.forgerock.services.context.Context context, ActionRequest request)
Promise<ResourceResponse,ResourceException>
DescribableRequestHandler. handleCreate(org.forgerock.services.context.Context context, CreateRequest request)
Promise<ResourceResponse,ResourceException>
DescribableRequestHandler. handleDelete(org.forgerock.services.context.Context context, DeleteRequest request)
Promise<ResourceResponse,ResourceException>
DescribableRequestHandler. handlePatch(org.forgerock.services.context.Context context, PatchRequest request)
Promise<QueryResponse,ResourceException>
DescribableRequestHandler. handleQuery(org.forgerock.services.context.Context context, QueryRequest request, QueryResourceHandler handler)
Promise<ResourceResponse,ResourceException>
DescribableRequestHandler. handleRead(org.forgerock.services.context.Context context, ReadRequest request)
Promise<ResourceResponse,ResourceException>
DescribableRequestHandler. handleUpdate(org.forgerock.services.context.Context context, UpdateRequest request)
-
Uses of Promise in org.forgerock.secrets
Methods in org.forgerock.secrets that return Promise Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>
SecretDecoder. decodeToPromise(byte[] data)
Decodes the raw data retrieved from a backend into aSecretBuilder
for further processing.default <S extends T>
Promise<S,NoSuchSecretException>SecretStore. getActive(Purpose<S> purpose)
Returns the active secret for the given purpose.<S extends T>
Promise<S,NoSuchSecretException>ThreadPoolSecretStore. getActive(Purpose<S> purpose)
<S extends Secret>
Promise<S,NoSuchSecretException>SecretsProvider. getActiveSecret(Purpose<S> purpose)
Gets the currently active secret for the given purpose.Promise<T,NoSuchSecretException>
SecretReference. getAsync()
Gets the current active secret object asynchronously, refreshing it if necessary.default <S extends T>
Promise<S,NoSuchSecretException>SecretStore. getNamed(Purpose<S> purpose, String name)
Returns the named secret from this store.<S extends T>
Promise<S,NoSuchSecretException>ThreadPoolSecretStore. getNamed(Purpose<S> purpose, String name)
<S extends Secret>
Promise<Stream<S>,NeverThrowsException>SecretsProvider. getNamedOrValidSecrets(Purpose<S> purpose, String id)
If the given id is not null, then this returns the single named secret that corresponds to that stable id (or a stream of valid secrets for the givenpurpose
if no such secret exists), otherwise it returns all valid secrets for the given purpose.<S extends Secret>
Promise<S,NoSuchSecretException>SecretsProvider. getNamedSecret(Purpose<S> purpose, String id)
Gets the secret for the given purpose with the given stable secret id.<S extends T>
Promise<Stream<S>,NeverThrowsException>SecretStore. getValid(Purpose<S> purpose)
Returns all valid secrets for the given purpose from this store.<S extends T>
Promise<Stream<S>,NeverThrowsException>ThreadPoolSecretStore. getValid(Purpose<S> purpose)
<S extends Secret>
Promise<Stream<S>,NeverThrowsException>SecretsProvider. getValidSecrets(Purpose<S> purpose)
Returns all secrets for the given purpose which have not yet expired. -
Uses of Promise in org.forgerock.secrets.propertyresolver
Methods in org.forgerock.secrets.propertyresolver that return Promise Modifier and Type Method Description Promise<SecretBuilder,NoSuchSecretException>
PemPropertyFormat. decodeToPromise(String propertyValue)
default Promise<SecretBuilder,NoSuchSecretException>
SecretPropertyFormat. decodeToPromise(byte[] data)
Decodes the data as a UTF-8 string and then callsSecretPropertyFormat.decodeToPromise(String)
to decode the string value.default Promise<SecretBuilder,NoSuchSecretException>
SecretPropertyFormat. decodeToPromise(String propertyValue)
Decodes the input property value, setting relevant properties on aSecretBuilder
object.<S extends Secret>
Promise<S,NoSuchSecretException>PropertyResolverSecretStore. getActive(Purpose<S> purpose)
<S extends Secret>
Promise<S,NoSuchSecretException>PropertyResolverSecretStore. getNamed(Purpose<S> purpose, String name)
<S extends Secret>
Promise<Stream<S>,NeverThrowsException>PropertyResolverSecretStore. getValid(Purpose<S> purpose)
Returns a stream of the active secret for the given purpose. -
Uses of Promise in org.forgerock.util
Methods in org.forgerock.util that return Promise Modifier and Type Method Description Promise<VOUT,E>
AsyncFunction. apply(VIN value)
Asynchronously applies this function to the input parametervalue
and returns aPromise
for the result.Promise<VOUT,E>
CloseSilentlyAsyncFunction. apply(VIN value)
Invokes the delegate async function'sAsyncFunction.apply(Object)
with the input parametervalue
, closes it when the delegated promise completes. -
Uses of Promise in org.forgerock.util.promise
Classes in org.forgerock.util.promise that implement Promise Modifier and Type Class Description class
PromiseImpl<V,E extends Exception>
An implementation ofPromise
which can be used as is, or as the basis for more complex asynchronous behavior.Methods in org.forgerock.util.promise that return Promise Modifier and Type Method Description static Promise<Void,NeverThrowsException>
Promises. allDone(Collection<Promise<?,?>> promises)
Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions).static <V> Promise<V,NeverThrowsException>
Promises. allDone(Collection<Promise<?,?>> promises, V context)
Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions), returning back thecontext
parameter.static Promise<Promises.Results,Exception>
Promises. join(List<Promise<?,? extends Exception>> promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static Promise<Promises.Results,Exception>
Promises. join(Promise<?,? extends Exception>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<V,E>Promises. newExceptionPromise(E exception)
Returns aPromise
representing an asynchronous task which has already failed with the provided exception.static <V,E extends Exception>
Promise<V,E>Promises. newPromise(Supplier<V,E> supplier)
Execute a task and return the result as aPromise
.static <V,E extends Exception>
Promise<V,E>Promises. newResultPromise(V result)
Returns aPromise
representing an asynchronous task which has already succeeded with the provided result.static <V,E extends Exception>
Promise<V,E>Promises. newRuntimeExceptionPromise(RuntimeException exception)
Returns aPromise
representing an asynchronous task which has already failed with the provided runtime exception.static <E extends Exception>
Promise<Void,E>Promises. newVoidResultPromise()
Returns aPromise
representing an asynchronous task which has already succeeded without result.<VOUT> Promise<VOUT,E>
Promise. then(Function<? super V,VOUT,E> onResult)
Submits the provided function for execution once thisPromise
has completed with a result, and returns a newPromise
representing the outcome of the function.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>Promise. then(Function<? super V,VOUT,EOUT> onResult, Function<? super E,VOUT,EOUT> onException)
Submits the provided functions for execution once thisPromise
has completed (with a result or an exception), and returns a newPromise
representing the outcome of the invoked function.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>Promise. then(Function<? super V,VOUT,EOUT> onResult, Function<? super E,VOUT,EOUT> onException, Function<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Submits the provided functions for execution once thisPromise
has completed (with a result or an exception or aRuntimeException
), and returns a newPromise
representing the outcome of the invoked function.<VOUT> Promise<VOUT,E>
PromiseImpl. then(Function<? super V,VOUT,E> onResult)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. then(Function<? super V,VOUT,EOUT> onResult, Function<? super E,VOUT,EOUT> onException)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. then(Function<? super V,VOUT,EOUT> onResult, Function<? super E,VOUT,EOUT> onException, Function<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Promise<V,E>
Promise. thenAlways(Runnable onResultOrException)
Submits the provided runnable for execution once thisPromise
has completed, and regardless of whether it has a result or an exception.Promise<V,E>
PromiseImpl. thenAlways(Runnable always)
<VOUT> Promise<VOUT,E>
Promise. thenAsync(AsyncFunction<? super V,VOUT,E> onResult)
Submits the provided asynchronous function for execution once thisPromise
has completed with a result, and returns a newPromise
representing the outcome of the function.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>Promise. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException)
Submits the provided asynchronous functions for execution once thisPromise
has completed, and returns a newPromise
representing the outcome of the invoked function.<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>Promise. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException, AsyncFunction<? super RuntimeException,VOUT,EOUT> onRuntimeException)
Submits the provided asynchronous functions for execution once thisPromise
has completed, and returns a newPromise
representing the outcome of the invoked function.<VOUT> Promise<VOUT,E>
PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,E> onResult)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException)
<VOUT,EOUT extends Exception>
Promise<VOUT,EOUT>PromiseImpl. thenAsync(AsyncFunction<? super V,VOUT,EOUT> onResult, AsyncFunction<? super E,VOUT,EOUT> onException, AsyncFunction<? super RuntimeException,VOUT,EOUT> onRuntimeException)
<EOUT extends Exception>
Promise<V,EOUT>Promise. thenCatch(Function<? super E,V,EOUT> onException)
Submits the provided function for execution once thisPromise
has not completed with a result (has completed with an exception), and returns a newPromise
representing the outcome of the function.<EOUT extends Exception>
Promise<V,EOUT>PromiseImpl. thenCatch(Function<? super E,V,EOUT> onException)
<EOUT extends Exception>
Promise<V,EOUT>Promise. thenCatchAsync(AsyncFunction<? super E,V,EOUT> onException)
Submits the provided asynchronous function for execution once thisPromise
has completed with an exception, and returns a newPromise
representing the outcome of the function.<EOUT extends Exception>
Promise<V,EOUT>PromiseImpl. thenCatchAsync(AsyncFunction<? super E,V,EOUT> onException)
Promise<V,E>
Promise. thenCatchRuntimeException(Function<? super RuntimeException,V,E> onRuntimeException)
Submits the provided function for execution once thisPromise
has not completed with a result nor with an exception but with aRuntimeException
, and returns a newPromise
representing the outcome of the function.Promise<V,E>
PromiseImpl. thenCatchRuntimeException(Function<? super RuntimeException,V,E> onRuntimeException)
Promise<V,E>
Promise. thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException,V,E> onRuntimeException)
Submits the provided asynchronous function for execution once thisPromise
has completed with aRuntimeException
, and returns a newPromise
representing the outcome of the function.Promise<V,E>
PromiseImpl. thenCatchRuntimeExceptionAsync(AsyncFunction<? super RuntimeException,V,E> onRuntimeException)
default Promise<Void,E>
Promise. thenDiscardResult()
Discards the promise result if thisPromise
has completed with a result.Promise<V,E>
Promise. thenFinally(Runnable onResultOrException)
Submits the provided runnable for execution once thisPromise
has completed, and regardless of whether of its outcome.Promise<V,E>
PromiseImpl. thenFinally(Runnable onFinally)
<T extends ResultHandler<? super V> & ExceptionHandler<? super E> & RuntimeExceptionHandler>
Promise<V,E>Promise. thenOnCompletion(T handler)
Registers the provided completion handler for notification for all completion cases of thisPromise
.<T extends ResultHandler<? super V> & ExceptionHandler<? super E> & RuntimeExceptionHandler>
Promise<V,E>PromiseImpl. thenOnCompletion(T handler)
Promise<V,E>
Promise. thenOnException(ExceptionHandler<? super E> onException)
Registers the provided completion handler for notification if thisPromise
cannot be completed due to an exception.Promise<V,E>
PromiseImpl. thenOnException(ExceptionHandler<? super E> onException)
Promise<V,E>
Promise. thenOnResult(ResultHandler<? super V> onResult)
Registers the provided completion handler for notification once thisPromise
has completed with a result.Promise<V,E>
PromiseImpl. thenOnResult(ResultHandler<? super V> onResult)
Promise<V,E>
Promise. thenOnResultOrException(Runnable onResultOrException)
Submits the provided runnable for execution once thisPromise
has completed, and regardless of whether it has a result or an exception.Promise<V,E>
Promise. thenOnResultOrException(ResultHandler<? super V> onResult, ExceptionHandler<? super E> onException)
Registers the provided completion handlers for notification once thisPromise
has completed (with a result or an exception).Promise<V,E>
PromiseImpl. thenOnResultOrException(Runnable onResultOrException)
Promise<V,E>
PromiseImpl. thenOnResultOrException(ResultHandler<? super V> onResult, ExceptionHandler<? super E> onException)
Promise<V,E>
Promise. thenOnRuntimeException(RuntimeExceptionHandler onRuntimeException)
Registers the provided completion handler for notification if thisPromise
cannot be completed due to an runtime exception.Promise<V,E>
PromiseImpl. thenOnRuntimeException(RuntimeExceptionHandler onRuntimeException)
static <V,E extends Exception>
Promise<List<V>,E>Promises. when(List<Promise<V,E>> promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<List<V>,E>Promises. when(Promise<V,E>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Methods in org.forgerock.util.promise that return types with arguments of type Promise Modifier and Type Method Description static <V,E extends Exception>
Optional<Promise<V,E>>Promises. anyResultFrom(Stream<Promise<V,E>> promises)
Takes a stream of promises that may not yet be resolved and returns a resolved value from them, or if none resolve to a result, the failure from the last.Methods in org.forgerock.util.promise with parameters of type Promise Modifier and Type Method Description static Promise<Promises.Results,Exception>
Promises. join(Promise<?,? extends Exception>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<List<V>,E>Promises. when(Promise<V,E>... promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.Method parameters in org.forgerock.util.promise with type arguments of type Promise Modifier and Type Method Description static Promise<Void,NeverThrowsException>
Promises. allDone(Collection<Promise<?,?>> promises)
Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions).static <V> Promise<V,NeverThrowsException>
Promises. allDone(Collection<Promise<?,?>> promises, V context)
Returns aPromise
which will be completed successfully once all of the provided promises have completed (successfully or not, including runtime exceptions), returning back thecontext
parameter.static <V,E extends Exception>
Optional<Promise<V,E>>Promises. anyResultFrom(Stream<Promise<V,E>> promises)
Takes a stream of promises that may not yet be resolved and returns a resolved value from them, or if none resolve to a result, the failure from the last.static Promise<Promises.Results,Exception>
Promises. join(List<Promise<?,? extends Exception>> promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails.static <V,E extends Exception>
Promise<List<V>,E>Promises. when(List<Promise<V,E>> promises)
Returns aPromise
which will be completed once all of the provided promises have succeeded, or as soon as one of them fails. -
Uses of Promise in org.opends.server.protocols.http
Methods in org.opends.server.protocols.http that return Promise Modifier and Type Method Description Promise<org.forgerock.http.protocol.Response,NeverThrowsException>
CommonAuditHttpAccessAuditFilter. filter(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request, org.forgerock.http.Handler next)
-