Uses of Interface
org.osgi.util.promise.Promise
Package
Description
Asynchronous Services Package Version 1.0.
Asynchronous Services Delegation Package Version 1.0.
Service Component Runtime Package Version 1.5.
Jakarta RESTful Web Services Whiteboard Client Package Version 1.0.
Service Layer API for oneM2M Specification Package Version 1.0.
Repository Service Package Version 1.1.
Device Service Specification for ZigBee Technology.
Promise Package Version 1.3.
Push Stream Package Version 1.1.
-
Uses of Promise in org.osgi.service.async
Modifier and TypeMethodDescriptionPromise<?>
Async.call()
Invoke the last method call registered by a mediated object as an asynchronous task.<R> Promise<R>
Async.call
(R r) Invoke the last method call registered by a mediated object as an asynchronous task.Async.execute()
Invoke the last method call registered by a mediated object as a "fire-and-forget" asynchronous task. -
Uses of Promise in org.osgi.service.async.delegate
-
Uses of Promise in org.osgi.service.component.runtime
Modifier and TypeMethodDescriptionServiceComponentRuntime.disableComponent
(ComponentDescriptionDTO description) Disables the specified component description.ServiceComponentRuntime.enableComponent
(ComponentDescriptionDTO description) Enables the specified component description. -
Uses of Promise in org.osgi.service.jakartars.client
Modifier and TypeMethodDescriptionPromise<jakarta.ws.rs.core.Response>
PromiseRxInvoker.delete()
<R> Promise<R>
PromiseRxInvoker.delete
(jakarta.ws.rs.core.GenericType<R> arg0) <R> Promise<R>
Promise<jakarta.ws.rs.core.Response>
PromiseRxInvoker.get()
<R> Promise<R>
PromiseRxInvoker.get
(jakarta.ws.rs.core.GenericType<R> arg0) <R> Promise<R>
Promise<jakarta.ws.rs.core.Response>
PromiseRxInvoker.head()
Promise<jakarta.ws.rs.core.Response>
Promise<jakarta.ws.rs.core.Response>
<R> Promise<R>
PromiseRxInvoker.method
(String arg0, jakarta.ws.rs.client.Entity<?> arg1, jakarta.ws.rs.core.GenericType<R> arg2) <R> Promise<R>
<R> Promise<R>
<R> Promise<R>
Promise<jakarta.ws.rs.core.Response>
PromiseRxInvoker.options()
<R> Promise<R>
PromiseRxInvoker.options
(jakarta.ws.rs.core.GenericType<R> arg0) <R> Promise<R>
Promise<jakarta.ws.rs.core.Response>
PromiseRxInvoker.post
(jakarta.ws.rs.client.Entity<?> arg0) <R> Promise<R>
PromiseRxInvoker.post
(jakarta.ws.rs.client.Entity<?> arg0, jakarta.ws.rs.core.GenericType<R> arg1) <R> Promise<R>
Promise<jakarta.ws.rs.core.Response>
PromiseRxInvoker.put
(jakarta.ws.rs.client.Entity<?> arg0) <R> Promise<R>
PromiseRxInvoker.put
(jakarta.ws.rs.client.Entity<?> arg0, jakarta.ws.rs.core.GenericType<R> arg1) <R> Promise<R>
Promise<jakarta.ws.rs.core.Response>
PromiseRxInvoker.trace()
<R> Promise<R>
PromiseRxInvoker.trace
(jakarta.ws.rs.core.GenericType<R> arg0) <R> Promise<R>
-
Uses of Promise in org.osgi.service.onem2m
Modifier and TypeMethodDescriptionServiceLayer.create
(String uri, ResourceDTO resource) create resourcedelete resourceServiceLayer.discovery
(String uri, FilterCriteriaDTO fc) find resources with filter condition specified in fc argument.ServiceLayer.discovery
(String uri, FilterCriteriaDTO fc, RequestPrimitiveDTO.DesiredIdentifierResultType drt) find resources with filter condition specified in fc argument.ServiceLayer.notify
(String uri, NotificationDTO notification) send notificationServiceLayer.request
(RequestPrimitiveDTO request) send a request and receive response.retrieve resourceretrieve resource with selected attributes.ServiceLayer.update
(String uri, ResourceDTO resource) update resource -
Uses of Promise in org.osgi.service.repository
Modifier and TypeMethodDescriptionRepository.findProviders
(RequirementExpression expression) Find the resources that match the specified requirement expression. -
Uses of Promise in org.osgi.service.zigbee
Modifier and TypeMethodDescriptionAdds the following entry in the Binding Table of the device:ZCLCluster.getAttribute
(int attributeId) Returns the clusterZCLAttribute
identifying that matches the given attributeId.ZCLCluster.getAttribute
(int attributeId, int code) Retrieves aZCLAttribute
object for a manufacturer specific attribute.ZCLCluster.getAttributes()
Returns an array ofZCLAttribute
objects representing all this cluster's attributes.ZCLCluster.getAttributes
(int code) Returns an array ofZCLAttribute
objects representing all the specific manufacturer attributes available on the cluster.ZigBeeEndpoint.getBoundEndPoints
(int clusterId) Returns bound endpoints (identified by their service PIDs) on a specific cluster ID.Promise<short[]>
ZCLCluster.getCommandIds()
Returns an array of all the commandIds of the ZCLCluster.ZigBeeNode.getComplexDescriptor()
Retrieves the ZigBee node Complex Descriptor.ZigBeeNode.getLinksQuality()
Retrieves the link quality information to the neighbor nodes.ZigBeeNode.getNodeDescriptor()
Retrieves the ZigBee node Node Descriptor.ZigBeeNode.getPowerDescriptor()
Retrieves the ZigBee node Power Descriptor.ZCLCommandResponse.getResponse()
Returns a promise holding the response.ZigBeeNode.getRoutingTable()
Retrieves the routing table information of the node.ZigBeeEndpoint.getSimpleDescriptor()
Returns the simple descriptor of this endpoint.ZigBeeNode.getUserDescription()
Returns the user description of this node.ZCLAttribute.getValue()
Gets the current value of the attribute.Invokes a command on this cluster with aZCLFrame
.Invokes a command on this cluster.Sends theZDPFrame
to thisZigBeeNode
with the specified cluster id.Sends theZDPFrame
to thisZigBeeNode
with the specified cluster id.Requests an endpoint to join this group.ZigBeeNode.leave()
Requests this node to leave the ZigBee network.ZigBeeNode.leave
(boolean rejoin, boolean removeChildren) Requests the device to leave the network.ZigBeeGroup.leaveGroup
(String pid) Requests an endpoint to leave this group.ZCLCluster.readAttributes
(ZCLAttributeInfo[] attributes) Reads a list of attributes by issuing a ZCL Read Attributes command.ZigBeeHost.refreshNetwork()
Forces a new network scan.ZigBeeNode.setUserDescription
(String userDescription) Sets the user description of this node.Sets the current value of the attribute.Removes the following entry in the Binding Table of the device if it exists:ZCLCluster.writeAttributes
(boolean undivided, Map<? extends ZCLAttributeInfo, ?> attributesAndValues) Writes a set of attributes on the cluster using the ZCL Write Attributes or the Write Attributes Undivided commands, according to the passedundivided
parameter. -
Uses of Promise in org.osgi.util.promise
Modifier and TypeMethodDescriptionPromiseFactory.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.Promises.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.Returns a new Promise that is a latch on the resolution of the specified Promises.Success callback for a Promise.Promise.delay
(long milliseconds) Delay after the resolution of this Promise.<T> Promise<T>
Returns a new Promise that has been resolved with the specified failure.static <T> Promise<T>
Returns a new Promise that has been resolved with the specified failure.Promise.fallbackTo
(Promise<? extends T> fallback) Fall back to the value of the specified Promise if this Promise fails.Promise.fallbackTo
(Promise<? extends T> fallback, Class<?> failureType) Fall back to the value of the specified Promise if this Promise fails and the failure is an instance of a failure type.Filter the value of this Promise.<R> Promise<R>
FlatMap the value of this Promise.Deferred.getPromise()
Returns the Promise associated with this Deferred.<R> Promise<R>
Map the value of this Promise.Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure of a failure type.Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.Register a callback to be called when this Promise is resolved.Register a callback to be called with the result of this Promise when this Promise is resolved successfully.Recover from a failure of this Promise with a recovery value.Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.Promise.recoverWith
(Function<Promise<?>, Promise<? extends T>> recovery) Recover from a failure of this Promise with a recovery Promise.Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.<T> Promise<T>
PromiseFactory.resolved
(T value) Returns a new Promise that has been resolved with the specified value.static <T> Promise<T>
Promises.resolved
(T value) Returns a new Promise that has been resolved with the specified value.<T> Promise<T>
PromiseFactory.resolvedWith
(CompletionStage<? extends T> with) Returns a new Promise that will be resolved with the result of the specified CompletionStage.<T> Promise<T>
PromiseFactory.resolvedWith
(Promise<? extends T> with) Returns a new Promise that will be resolved with the specified Promise.Deferred.resolveWith
(CompletionStage<? extends T> with) Resolve the Promise associated with this Deferred with the specified CompletionStage.Deferred.resolveWith
(Promise<? extends T> with) Resolve the Promise associated with this Deferred with the specified Promise.<T> Promise<T>
Returns a new Promise that will hold the result of the specified task.<R> Promise<R>
Chain a new Promise to this Promise with a Success callback.<R> Promise<R>
Chain a new Promise to this Promise with Success and Failure callbacks.Promise.thenAccept
(Consumer<? super T> consumer) Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.Promise.timeout
(long milliseconds) Time out the resolution of this Promise.Modifier and TypeMethodDescriptionCollection<Promise<?>>
FailedPromisesException.getFailedPromises()
Returns the collection of Promises that have been resolved with a failure.PromiseFactory.toPromise()
Returns aCollector
that accumulates the results of the input Promises into a newPromiseFactory.all(Collection)
Promise.PromiseFactory.toPromise()
Returns aCollector
that accumulates the results of the input Promises into a newPromiseFactory.all(Collection)
Promise.Modifier and TypeMethodDescriptionReturns a new Promise that is a latch on the resolution of the specified Promises.Success callback for a Promise.void
Failure callback for a Promise.Promise.fallbackTo
(Promise<? extends T> fallback) Fall back to the value of the specified Promise if this Promise fails.Promise.fallbackTo
(Promise<? extends T> fallback, Class<?> failureType) Fall back to the value of the specified Promise if this Promise fails and the failure is an instance of a failure type.<T> Promise<T>
PromiseFactory.resolvedWith
(Promise<? extends T> with) Returns a new Promise that will be resolved with the specified Promise.Deferred.resolveWith
(Promise<? extends T> with) Resolve the Promise associated with this Deferred with the specified Promise.Modifier and TypeMethodDescriptionPromiseFactory.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.Promises.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.<R> Promise<R>
FlatMap the value of this Promise.Recover from a failure of this Promise with a recovery value.Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.Promise.recoverWith
(Function<Promise<?>, Promise<? extends T>> recovery) Recover from a failure of this Promise with a recovery Promise.Promise.recoverWith
(Function<Promise<?>, Promise<? extends T>> recovery) Recover from a failure of this Promise with a recovery Promise.Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.ModifierConstructorDescriptionFailedPromisesException
(Collection<Promise<?>> failed, Throwable cause) Create a new FailedPromisesException with the specified Promises. -
Uses of Promise in org.osgi.util.pushstream
Modifier and TypeMethodDescriptionCloses the channel and resolve the promise with false when the predicate does not matches a pay load.Close the channel and resolve the promise with true when the predicate matches a payload.<R,
A> Promise<R> See Stream.SimplePushEventSource.connectPromise()
This method can be used to delay event generation until an event source has connected.PushStream.count()
See Stream.PushStream.findAny()
Close the channel and resolve the promise with the first element.PushStream.findFirst()
Close the channel and resolve the promise with the first element.Execute the action for each event received until the channel is closed.PushStream.forEachEvent
(PushEventConsumer<? super T> action) Pass on each event to another consumer until the stream is closed.PushStream.max
(Comparator<? super T> comparator) See Stream.PushStream.min
(Comparator<? super T> comparator) See Stream.Closes the channel and resolve the promise with false when the predicate matches any pay load.PushStream.reduce
(BinaryOperator<T> accumulator) Standard reduce without identity, so the return is an Optional.PushStream.reduce
(T identity, BinaryOperator<T> accumulator) Standard reduce, see Stream.<U> Promise<U>
PushStream.reduce
(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) Standard reduce with identity, accumulator and combiner.PushStream.toArray()
Collect the payloads in an Object array after the channel is closed.<A> Promise<A[]>
PushStream.toArray
(IntFunction<A[]> generator) Collect the payloads in an Object array after the channel is closed.