Package org.freedesktop.dbus
Class DBusAsyncReply<T>
- java.lang.Object
-
- org.freedesktop.dbus.DBusAsyncReply<T>
-
public class DBusAsyncReply<T> extends java.lang.ObjectA handle to an asynchronous method call.
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractConnectionconnprivate DBusExecutionExceptionerrorprivate org.slf4j.Loggerloggerprivate MethodCallmcprivate java.lang.reflect.Methodmeprivate Trval
-
Constructor Summary
Constructors Constructor Description DBusAsyncReply(MethodCall _mc, java.lang.reflect.Method _me, AbstractConnection _conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckReply()MethodCallgetCall()AbstractConnectiongetConnection()java.lang.reflect.MethodgetMethod()TgetReply()Get the reply.booleanhasReply()Check if we've had a reply.java.lang.StringtoString()
-
-
-
Field Detail
-
logger
private final org.slf4j.Logger logger
-
rval
private T rval
-
error
private DBusExecutionException error
-
mc
private final MethodCall mc
-
me
private final java.lang.reflect.Method me
-
conn
private final AbstractConnection conn
-
-
Constructor Detail
-
DBusAsyncReply
public DBusAsyncReply(MethodCall _mc, java.lang.reflect.Method _me, AbstractConnection _conn)
-
-
Method Detail
-
checkReply
private void checkReply()
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getMethod
public java.lang.reflect.Method getMethod()
-
getConnection
public AbstractConnection getConnection()
-
getCall
public MethodCall getCall()
-
-