Uses of Class
com.lucimber.dbus.util.DBusPromise
Packages that use DBusPromise
Package
Description
Utility classes and helper functions for D-Bus operations and internal framework use.
-
Uses of DBusPromise in com.lucimber.dbus.util
Methods in com.lucimber.dbus.util that return DBusPromiseModifier and TypeMethodDescription<U> DBusPromise<U>
Casts the result to a specific type.static <U> DBusPromise<U>
DBusPromise.completed
(U value) Creates a DBusPromise from a value.DBusPromise.exceptionally
(Function<Throwable, ? extends T> fn) Handles exceptions.static <U> DBusPromise<U>
Creates a failed DBusPromise.<U extends DBusType>
DBusPromise<U>Maps the first element of a payload list.static DBusPromise<InboundMessage>
DBusPromise.from
(CompletionStage<InboundMessage> messageStage) Creates a DBusPromise from a D-Bus message completion stage.<U> DBusPromise<U>
Maps the result using a function.DBusPromise.mapReturn()
Maps an InboundMessage to its return payload.DBusPromise.thenAccept
(Consumer<? super T> action) Handles both success and failure cases.Applies a timeout to the operation.