org.freedesktop.dbus

Class DBusAsyncReply<ReturnType>

public class DBusAsyncReply<ReturnType> extends Object

A handle to an asynchronous method call.
Method Summary
ReturnTypegetReply()
Get the reply.
static Collection<DBusAsyncReply>hasReply(Collection<DBusAsyncReply> replies)
Check if any of a set of asynchronous calls have had a reply.
booleanhasReply()
Check if we've had a reply.
StringtoString()

Method Detail

getReply

public ReturnType getReply()
Get the reply.

Returns: The return value from the method.

Throws: DBusExecutionException if the reply to the method was an error. NoReply if the method hasn't had a reply yet

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

toString

public String toString()