Package org.freedesktop.dbus
Class DBusAsyncReply<T>
- java.lang.Object
-
- org.freedesktop.dbus.DBusAsyncReply<T>
-
public class DBusAsyncReply<T> extends Object
A handle to an asynchronous method call.
-
-
Constructor Summary
Constructors Constructor Description DBusAsyncReply(MethodCall _mc, Method _me, AbstractConnection _conn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodCall
getCall()
AbstractConnection
getConnection()
Method
getMethod()
T
getReply()
Get the reply.boolean
hasReply()
Check if we've had a reply.static Collection<DBusAsyncReply<?>>
hasReply(Collection<DBusAsyncReply<?>> replies)
Check if any of a set of asynchronous calls have had a reply.String
toString()
-
-
-
Constructor Detail
-
DBusAsyncReply
public DBusAsyncReply(MethodCall _mc, Method _me, AbstractConnection _conn)
-
-
Method Detail
-
hasReply
public static Collection<DBusAsyncReply<?>> hasReply(Collection<DBusAsyncReply<?>> 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 T getReply() throws DBusException
Get the reply.- Returns:
- The return value from the method.
- Throws:
DBusException
- if the reply to the method was an error.NoReply
- if the method hasn't had a reply yet
-
getMethod
public Method getMethod()
-
getConnection
public AbstractConnection getConnection()
-
getCall
public MethodCall getCall()
-
-