Package org.freedesktop.dbus
Class DBusAsyncReply<ReturnType>
- java.lang.Object
-
- org.freedesktop.dbus.DBusAsyncReply<ReturnType>
-
public class DBusAsyncReply<ReturnType> extends java.lang.Object
A handle to an asynchronous method call.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReturnType
getReply()
Get the reply.boolean
hasReply()
Check if we've had a reply.static java.util.Collection<DBusAsyncReply<? extends java.lang.Object>>
hasReply(java.util.Collection<DBusAsyncReply<? extends java.lang.Object>> replies)
Check if any of a set of asynchronous calls have had a reply.java.lang.String
toString()
-
-
-
Method Detail
-
hasReply
public static java.util.Collection<DBusAsyncReply<? extends java.lang.Object>> hasReply(java.util.Collection<DBusAsyncReply<? extends java.lang.Object>> replies)
Check if any of a set of asynchronous calls have had a reply.- Parameters:
replies
- A Collection of handles to replies to check.- Returns:
- A Collection only containing those calls which have had replies.
-
hasReply
public boolean hasReply()
Check if we've had a reply.- Returns:
- True if we have a reply
-
getReply
public ReturnType getReply() throws DBusExecutionException
Get the reply.- Returns:
- The return value from the method.
- Throws:
DBusExecutionException
- if the reply to the method was an error.DBus.Error.NoReply
- if the method hasn't had a reply yet
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-