Top Description Fields Constructors Methods
org.freedesktop.dbus

public Class DBusAsyncReply<T>

extends Object
Class Inheritance
Imports
org.freedesktop.dbus.connections.AbstractConnection, org.freedesktop.dbus.errors.NoReply, org.freedesktop.dbus.exceptions.DBusException, .DBusExecutionException, org.freedesktop.dbus.messages.*, .Error, org.slf4j.Logger, .LoggerFactory, java.lang.reflect.Method

A handle to an asynchronous method call.

Field Summary

Modifier and TypeField and Description
private final AbstractConnection
private DBusExecutionException
private final Logger
private final MethodCall
private final Method
private T

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private synchronized void
public MethodCall
public AbstractConnection
public Method
public T

Returns:

The return value from the method.
getReply
()

Get the reply.

public boolean

Returns:

true if we have a reply
hasReply
()

Check if we've had a reply.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

connback to summary
private final AbstractConnection conn
errorback to summary
private DBusExecutionException error
loggerback to summary
private final Logger logger
mcback to summary
private final MethodCall mc
meback to summary
private final Method me
rvalback to summary
private T rval

Constructor Detail

DBusAsyncReplyback to summary
public DBusAsyncReply(MethodCall _mc, Method _me, AbstractConnection _conn)

Method Detail

checkReplyback to summary
private synchronized void checkReply()
Annotations
@SuppressWarnings:unchecked
getCallback to summary
public MethodCall getCall()
getConnectionback to summary
public AbstractConnection getConnection()
getMethodback to summary
public Method getMethod()
getReplyback to summary
public T getReply() throws DBusException

Get the reply.

Returns:T

The return value from the method.

Exceptions
DBusException:
if the reply to the method was an error.
NoReply:
if the method hasn't had a reply yet
hasReplyback to summary
public boolean hasReply()

Check if we've had a reply.

Returns:boolean

true if we have a reply

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override