Uses of Interface
org.osgi.util.promise.Promise
-
Packages that use Promise Package Description org.osgi.service.async Asynchronous Services Package Version 1.0.org.osgi.service.async.delegate Asynchronous Services Delegation Package Version 1.0.org.osgi.service.component.runtime Service Component Runtime Package Version 1.5.org.osgi.service.onem2m Service Layer API for oneM2M Specification Package Version 1.0.org.osgi.service.repository Repository Service Package Version 1.1.org.osgi.service.zigbee Device Service Specification for ZigBee Technology.org.osgi.util.promise Promise Package Version 1.2.org.osgi.util.pushstream Push Stream Package Version 1.0. -
-
Uses of Promise in org.osgi.service.async
Methods in org.osgi.service.async that return Promise Modifier and Type Method Description Promise<?>
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.Promise<java.lang.Void>
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
Methods in org.osgi.service.async.delegate that return Promise Modifier and Type Method Description Promise<?>
AsyncDelegate. async(java.lang.reflect.Method m, java.lang.Object[] args)
Invoke the specified method as an asynchronous task with the specified arguments. -
Uses of Promise in org.osgi.service.component.runtime
Methods in org.osgi.service.component.runtime that return Promise Modifier and Type Method Description Promise<java.lang.Void>
ServiceComponentRuntime. disableComponent(ComponentDescriptionDTO description)
Disables the specified component description.Promise<java.lang.Void>
ServiceComponentRuntime. enableComponent(ComponentDescriptionDTO description)
Enables the specified component description. -
Uses of Promise in org.osgi.service.onem2m
Methods in org.osgi.service.onem2m that return Promise Modifier and Type Method Description Promise<ResourceDTO>
ServiceLayer. create(java.lang.String uri, ResourceDTO resource)
create resourcePromise<java.lang.Boolean>
ServiceLayer. delete(java.lang.String uri)
delete resourcePromise<java.util.List<java.lang.String>>
ServiceLayer. discovery(java.lang.String uri, FilterCriteriaDTO fc)
find resources with filter condition specified in fc argument.Promise<java.util.List<java.lang.String>>
ServiceLayer. discovery(java.lang.String uri, FilterCriteriaDTO fc, RequestPrimitiveDTO.DesiredIdentifierResultType drt)
find resources with filter condition specified in fc argument.Promise<java.lang.Boolean>
ServiceLayer. notify(java.lang.String uri, NotificationDTO notification)
send notificationPromise<ResponsePrimitiveDTO>
ServiceLayer. request(RequestPrimitiveDTO request)
send a request and receive response.Promise<ResourceDTO>
ServiceLayer. retrieve(java.lang.String uri)
retrieve resourcePromise<ResourceDTO>
ServiceLayer. retrieve(java.lang.String uri, java.util.List<java.lang.String> targetAttributes)
retrieve resource with selected attributes.Promise<ResourceDTO>
ServiceLayer. update(java.lang.String uri, ResourceDTO resource)
update resource -
Uses of Promise in org.osgi.service.repository
Methods in org.osgi.service.repository that return Promise Modifier and Type Method Description Promise<java.util.Collection<org.osgi.resource.Resource>>
Repository. findProviders(RequirementExpression expression)
Find the resources that match the specified requirement expression. -
Uses of Promise in org.osgi.service.zigbee
Methods in org.osgi.service.zigbee that return Promise Modifier and Type Method Description Promise<java.lang.Void>
ZigBeeEndpoint. bind(java.lang.String servicePid, int clusterId)
Adds the following entry in the Binding Table of the device:Promise<ZCLAttribute>
ZCLCluster. getAttribute(int attributeId)
Returns the clusterZCLAttribute
identifying that matches the given attributeId.Promise<ZCLAttribute>
ZCLCluster. getAttribute(int attributeId, int code)
Retrieves aZCLAttribute
object for a manufacturer specific attribute.Promise<ZCLAttribute[]>
ZCLCluster. getAttributes()
Returns an array ofZCLAttribute
objects representing all this cluster's attributes.Promise<ZCLAttribute[]>
ZCLCluster. getAttributes(int code)
Returns an array ofZCLAttribute
objects representing all the specific manufacturer attributes available on the cluster.Promise<java.util.List<java.lang.String>>
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.Promise<ZigBeeComplexDescriptor>
ZigBeeNode. getComplexDescriptor()
Retrieves the ZigBee node Complex Descriptor.Promise<java.util.Map<java.lang.String,ZigBeeLinkQuality>>
ZigBeeNode. getLinksQuality()
Retrieves the link quality information to the neighbor nodes.Promise<ZigBeeNodeDescriptor>
ZigBeeNode. getNodeDescriptor()
Retrieves the ZigBee node Node Descriptor.Promise<ZigBeePowerDescriptor>
ZigBeeNode. getPowerDescriptor()
Retrieves the ZigBee node Power Descriptor.Promise<ZCLFrame>
ZCLCommandResponse. getResponse()
Returns a promise holding the response.Promise<java.util.Map<java.lang.String,ZigBeeRoute>>
ZigBeeNode. getRoutingTable()
Retrieves the routing table information of the node.Promise<ZigBeeSimpleDescriptor>
ZigBeeEndpoint. getSimpleDescriptor()
Returns the simple descriptor of this endpoint.Promise<java.lang.String>
ZigBeeNode. getUserDescription()
Returns the user description of this node.Promise<java.lang.Object>
ZCLAttribute. getValue()
Gets the current value of the attribute.Promise<ZCLFrame>
ZCLCluster. invoke(ZCLFrame frame)
Invokes a command on this cluster with aZCLFrame
.Promise<ZCLFrame>
ZCLCluster. invoke(ZCLFrame frame, java.lang.String exportedServicePID)
Invokes a command on this cluster.Promise<ZDPFrame>
ZigBeeNode. invoke(int clusterIdReq, int expectedClusterIdRsp, ZDPFrame message)
Sends theZDPFrame
to thisZigBeeNode
with the specified cluster id.Promise<ZDPFrame>
ZigBeeNode. invoke(int clusterIdReq, ZDPFrame message)
Sends theZDPFrame
to thisZigBeeNode
with the specified cluster id.Promise<java.lang.Void>
ZigBeeGroup. joinGroup(java.lang.String pid)
Requests an endpoint to join this group.Promise<java.lang.Void>
ZigBeeNode. leave()
Requests this node to leave the ZigBee network.Promise<java.lang.Void>
ZigBeeNode. leave(boolean rejoin, boolean removeChildren)
Requests the device to leave the network.Promise<java.lang.Void>
ZigBeeGroup. leaveGroup(java.lang.String pid)
Requests an endpoint to leave this group.Promise<java.util.Map<java.lang.Integer,ZCLReadStatusRecord>>
ZCLCluster. readAttributes(ZCLAttributeInfo[] attributes)
Reads a list of attributes by issuing a ZCL Read Attributes command.Promise<java.lang.Boolean>
ZigBeeHost. refreshNetwork()
Forces a new network scan.Promise<java.lang.Void>
ZigBeeNode. setUserDescription(java.lang.String userDescription)
Sets the user description of this node.Promise<java.lang.Void>
ZCLAttribute. setValue(java.lang.Object value)
Sets the current value of the attribute.Promise<java.lang.Void>
ZigBeeEndpoint. unbind(java.lang.String servicePid, int clusterId)
Removes the following entry in the Binding Table of the device if it exists:Promise<java.util.Map<java.lang.Integer,java.lang.Integer>>
ZCLCluster. writeAttributes(boolean undivided, java.util.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
Methods in org.osgi.util.promise that return Promise Modifier and Type Method Description <T,S extends T>
Promise<java.util.List<T>>PromiseFactory. all(java.util.Collection<Promise<S>> promises)
Returns a new Promise that is a latch on the resolution of the specified Promises.static <T,S extends T>
Promise<java.util.List<T>>Promises. all(java.util.Collection<Promise<S>> promises)
Returns a new Promise that is a latch on the resolution of the specified Promises.static <T> Promise<java.util.List<T>>
Promises. all(Promise<? extends T>... promises)
Returns a new Promise that is a latch on the resolution of the specified Promises.Promise<R>
Success. call(Promise<T> resolved)
Success callback for a Promise.Promise<T>
Promise. delay(long milliseconds)
Delay after the resolution of this Promise.<T> Promise<T>
PromiseFactory. failed(java.lang.Throwable failure)
Returns a new Promise that has been resolved with the specified failure.static <T> Promise<T>
Promises. failed(java.lang.Throwable failure)
Returns a new Promise that has been resolved with the specified failure.Promise<T>
Promise. fallbackTo(Promise<? extends T> fallback)
Fall back to the value of the specified Promise if this Promise fails.Promise<T>
Promise. filter(Predicate<? super T> predicate)
Filter the value of this Promise.<R> Promise<R>
Promise. flatMap(Function<? super T,Promise<? extends R>> mapper)
FlatMap the value of this Promise.Promise<T>
Deferred. getPromise()
Returns the Promise associated with this Deferred.<R> Promise<R>
Promise. map(Function<? super T,? extends R> mapper)
Map the value of this Promise.Promise<T>
Promise. onFailure(Consumer<? super java.lang.Throwable> failure)
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.Promise<T>
Promise. onResolve(java.lang.Runnable callback)
Register a callback to be called when this Promise is resolved.Promise<T>
Promise. onSuccess(Consumer<? super T> success)
Register a callback to be called with the result of this Promise when this Promise is resolved successfully.Promise<T>
Promise. recover(Function<Promise<?>,? extends T> recovery)
Recover from a failure of this Promise with a recovery value.Promise<T>
Promise. recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.<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(java.util.concurrent.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.Promise<java.lang.Void>
Deferred. resolveWith(java.util.concurrent.CompletionStage<? extends T> with)
Resolve the Promise associated with this Deferred with the specified CompletionStage.Promise<java.lang.Void>
Deferred. resolveWith(Promise<? extends T> with)
Resolve the Promise associated with this Deferred with the specified Promise.<T> Promise<T>
PromiseFactory. submit(java.util.concurrent.Callable<? extends T> task)
Returns a new Promise that will hold the result of the specified task.<R> Promise<R>
Promise. then(Success<? super T,? extends R> success)
Chain a new Promise to this Promise with a Success callback.<R> Promise<R>
Promise. then(Success<? super T,? extends R> success, Failure failure)
Chain a new Promise to this Promise with Success and Failure callbacks.Promise<T>
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<T>
Promise. timeout(long milliseconds)
Time out the resolution of this Promise.Methods in org.osgi.util.promise that return types with arguments of type Promise Modifier and Type Method Description java.util.Collection<Promise<?>>
FailedPromisesException. getFailedPromises()
Returns the collection of Promises that have been resolved with a failure.<T,S extends T>
java.util.stream.Collector<Promise<S>,?,Promise<java.util.List<T>>>PromiseFactory. toPromise()
Returns aCollector
that accumulates the results of the input Promises into a newPromiseFactory.all(Collection)
Promise.<T,S extends T>
java.util.stream.Collector<Promise<S>,?,Promise<java.util.List<T>>>PromiseFactory. toPromise()
Returns aCollector
that accumulates the results of the input Promises into a newPromiseFactory.all(Collection)
Promise.Methods in org.osgi.util.promise with parameters of type Promise Modifier and Type Method Description static <T> Promise<java.util.List<T>>
Promises. all(Promise<? extends T>... promises)
Returns a new Promise that is a latch on the resolution of the specified Promises.Promise<R>
Success. call(Promise<T> resolved)
Success callback for a Promise.void
Failure. fail(Promise<?> resolved)
Failure callback for a Promise.Promise<T>
Promise. fallbackTo(Promise<? extends T> fallback)
Fall back to the value of the specified Promise if this Promise fails.<T> Promise<T>
PromiseFactory. resolvedWith(Promise<? extends T> with)
Returns a new Promise that will be resolved with the specified Promise.Promise<java.lang.Void>
Deferred. resolveWith(Promise<? extends T> with)
Resolve the Promise associated with this Deferred with the specified Promise.Method parameters in org.osgi.util.promise with type arguments of type Promise Modifier and Type Method Description <T,S extends T>
Promise<java.util.List<T>>PromiseFactory. all(java.util.Collection<Promise<S>> promises)
Returns a new Promise that is a latch on the resolution of the specified Promises.static <T,S extends T>
Promise<java.util.List<T>>Promises. all(java.util.Collection<Promise<S>> promises)
Returns a new Promise that is a latch on the resolution of the specified Promises.<R> Promise<R>
Promise. flatMap(Function<? super T,Promise<? extends R>> mapper)
FlatMap the value of this Promise.Promise<T>
Promise. recover(Function<Promise<?>,? extends T> recovery)
Recover from a failure of this Promise with a recovery value.Promise<T>
Promise. recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.Promise<T>
Promise. recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.Constructor parameters in org.osgi.util.promise with type arguments of type Promise Constructor Description FailedPromisesException(java.util.Collection<Promise<?>> failed, java.lang.Throwable cause)
Create a new FailedPromisesException with the specified Promises. -
Uses of Promise in org.osgi.util.pushstream
Methods in org.osgi.util.pushstream that return Promise Modifier and Type Method Description Promise<java.lang.Boolean>
PushStream. allMatch(Predicate<? super T> predicate)
Closes the channel and resolve the promise with false when the predicate does not matches a pay load.Promise<java.lang.Boolean>
PushStream. anyMatch(Predicate<? super T> predicate)
Close the channel and resolve the promise with true when the predicate matches a payload.<R,A>
Promise<R>PushStream. collect(java.util.stream.Collector<? super T,A,R> collector)
See Stream.Promise<java.lang.Void>
SimplePushEventSource. connectPromise()
This method can be used to delay event generation until an event source has connected.Promise<java.lang.Long>
PushStream. count()
See Stream.Promise<java.util.Optional<T>>
PushStream. findAny()
Close the channel and resolve the promise with the first element.Promise<java.util.Optional<T>>
PushStream. findFirst()
Close the channel and resolve the promise with the first element.Promise<java.lang.Void>
PushStream. forEach(java.util.function.Consumer<? super T> action)
Execute the action for each event received until the channel is closed.Promise<java.lang.Long>
PushStream. forEachEvent(PushEventConsumer<? super T> action)
Pass on each event to another consumer until the stream is closed.Promise<java.util.Optional<T>>
PushStream. max(java.util.Comparator<? super T> comparator)
See Stream.Promise<java.util.Optional<T>>
PushStream. min(java.util.Comparator<? super T> comparator)
See Stream.Promise<java.lang.Boolean>
PushStream. noneMatch(Predicate<? super T> predicate)
Closes the channel and resolve the promise with false when the predicate matches any pay load.Promise<java.util.Optional<T>>
PushStream. reduce(java.util.function.BinaryOperator<T> accumulator)
Standard reduce without identity, so the return is an Optional.Promise<T>
PushStream. reduce(T identity, java.util.function.BinaryOperator<T> accumulator)
Standard reduce, see Stream.<U> Promise<U>
PushStream. reduce(U identity, java.util.function.BiFunction<U,? super T,U> accumulator, java.util.function.BinaryOperator<U> combiner)
Standard reduce with identity, accumulator and combiner.Promise<java.lang.Object[]>
PushStream. toArray()
Collect the payloads in an Object array after the channel is closed.<A> Promise<A[]>
PushStream. toArray(java.util.function.IntFunction<A[]> generator)
Collect the payloads in an Object array after the channel is closed.Method parameters in org.osgi.util.pushstream with type arguments of type Promise Modifier and Type Method Description <R> PushStream<R>
PushStream. asyncMap(int n, int delay, Function<? super T,Promise<? extends R>> mapper)
Asynchronously map the payload values.
-