| Modifier and Type | Field and Description |
|---|---|
| public static final Pattern | |
| public static final boolean | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected | AbstractConnection(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addFallback(String
The path below which the fallback handles calls. MUST be in slash-notation, like
"/org/freedesktop/Local", _objectPrefix, DBusInterface The object to export. _object)Export an object as a fallback object. |
| protected abstract AutoCloseable | Returns: closeable that removes signal handlerrule to add _rule, DBusSigHandler<DBusSignal> handler to use _handler)Adds a |
| protected abstract < signal type T extends DBusSignal> AutoCloseable | Returns: closeable that removes signal handlerrule to add _rule, DBusSigHandler<T> handler to use _handler)Add a signal handler with the given |
| public < class extending T extends DBusSignal> AutoCloseableDBusSignal | Returns: closeable that removes signal handlerThe signal to watch for. _type, DBusSigHandler<T> The handler to call when a signal is received. _handler)Add a Signal Handler. |
| public < class extending T extends DBusSignal> AutoCloseableDBusSignal | Returns: closeable that removes signal handlerThe signal to watch for. _type, DBusInterface The object from which the signal will be emitted _object, DBusSigHandler<T> The handler to call when a signal is received. _handler)Add a Signal Handler. |
| protected <T extends DBusSignal> void | |
| private <T extends DBusSignal> void | |
| public DBusAsyncReply | Returns: A handle to the call.The remote object on which to call the method. _object, String The name of the method on the interface to call. _method, Object... The parameters to call the method with. _parameters)Call a method asynchronously and get a handle with which to get the reply. |
| public < whatever A> void | callWithCallback(DBusInterface
The remote object on which to call the method. _object, String The name of the method on the interface to call. _m, CallbackHandler<A> The callback handler. _callback, Object... The parameters to call the method with. _parameters)Call a method asynchronously and set a callback. |
| protected IncomingMessageThread | createReaderThread(BusAddress
current bus address _busAddress)Implements abstract org. Create the read thread for reading incoming messages. |
| private static Class | |
| public void | exportObject(String
The path to the object we are exposing. MUST be in slash-notation, like "/org/freedesktop/Local", and
SHOULD end with a capitalised term. Only one object may be exposed on each path at any one time, but
an object may be exposed on several paths at once. _objectPath, DBusInterface The object to export. _object)Export an object so that its methods can be called on DBus. |
| public void | exportObject(DBusInterface
The object to export. _object)Export an object so that its methods can be called on DBus. |
| protected < any DBusInterface compatible object T extends DBusInterface> List | Returns: Listtype or null _type, List<String> interfaces to examining when type is null _ifaces)If given type is null, will try to find suitable types by examining the given ifaces. |
| public boolean | |
| public void | |
| public void | |
| protected abstract void | removeGenericSigHandler(DBusMatchRule
rule to remove _rule, DBusSigHandler<DBusSignal> handler to remove _handler)Remove a generic signal handler with the given |
| protected abstract < signal type T extends DBusSignal> void | removeSigHandler(DBusMatchRule
rule to remove _rule, DBusSigHandler<T> handler to remove _handler)Remove a match rule with the given |
| public < class extending T extends DBusSignal> voidDBusSignal | removeSigHandler(Class<T>
The signal to watch for. _type, DBusSigHandler<T> the handler _handler)Remove a Signal Handler. |
| public < class extending T extends DBusSignal> voidDBusSignal | removeSigHandler(Class<T>
The signal to watch for. _type, DBusInterface The object emitting the signal. _object, DBusSigHandler<T> the handler _handler)Remove a Signal Handler. |
| public void | setWeakReferences(boolean
reference _weakreferences)
Deprecated
for removal since 5.1.0 - 2024-07-12. should be set during construction time (using the builder), will be removed in future
If set to true the bus will not hold a strong reference to exported objects. |
| DOLLAR_PATTERN | back to summary |
|---|---|
| public static final Pattern DOLLAR_PATTERN | |
| FLOAT_SUPPORT | back to summary |
|---|---|
| public static final boolean FLOAT_SUPPORT | |
| MAX_ARRAY_LENGTH | back to summary |
|---|---|
| public static final int MAX_ARRAY_LENGTH | |
| MAX_NAME_LENGTH | back to summary |
|---|---|
| public static final int MAX_NAME_LENGTH | |
| AbstractConnection | back to summary |
|---|---|
| protected AbstractConnection(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) throws DBusException | |
| addFallback | back to summary |
|---|---|
| public void addFallback(String _objectPrefix, DBusInterface _object) throws DBusException Export an object as a fallback object. This object will have it's methods invoked for all paths starting with this object path.
| |
| addGenericSigHandler | back to summary |
|---|---|
| protected abstract AutoCloseable addGenericSigHandler(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) throws DBusException Adds a
| |
| addSigHandler | back to summary |
|---|---|
| protected abstract <T extends DBusSignal> AutoCloseable addSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) throws DBusException Add a signal handler with the given
| |
| addSigHandler | back to summary |
|---|---|
| public <T extends DBusSignal> AutoCloseable addSigHandler(Class<T> _type, DBusSigHandler<T> _handler) throws DBusException Add a Signal Handler. Adds a signal handler to call when a signal is received which matches the specified type and name.
| |
| addSigHandler | back to summary |
|---|---|
| public <T extends DBusSignal> AutoCloseable addSigHandler(Class<T> _type, DBusInterface _object, DBusSigHandler<T> _handler) throws DBusException Add a Signal Handler. Adds a signal handler to call when a signal is received which matches the specified type, name and object.
| |
| addSigHandlerWithoutMatch | back to summary |
|---|---|
| protected <T extends DBusSignal> void addSigHandlerWithoutMatch(Class<? extends DBusSignal> _signal, DBusSigHandler<T> _handler) throws DBusException | |
| assertSignal | back to summary |
|---|---|
| private <T extends DBusSignal> void assertSignal(Class<T> _type) throws InvalidSignalException | |
| callMethodAsync | back to summary |
|---|---|
| public DBusAsyncReply Call a method asynchronously and get a handle with which to get the reply.
| |
| callWithCallback | back to summary |
|---|---|
| public <A> void callWithCallback(DBusInterface _object, String _m, CallbackHandler<A> _callback, Object... _parameters) Call a method asynchronously and set a callback. This handler will be called in a separate thread.
| |
| createReaderThread | back to summary |
|---|---|
| protected IncomingMessageThread createReaderThread(BusAddress _busAddress) Implements abstract org. Doc from org. Create the read thread for reading incoming messages.
| |
| createTypesArray | back to summary |
|---|---|
| private static Class | |
| exportObject | back to summary |
|---|---|
| public void exportObject(String _objectPath, DBusInterface _object) throws DBusException Export an object so that its methods can be called on DBus.
| |
| exportObject | back to summary |
|---|---|
| public void exportObject(DBusInterface _object) throws DBusException Export an object so that its methods can be called on DBus. The path to the object will be taken from the
| |
| findMatchingTypes | back to summary |
|---|---|
| protected <T extends DBusInterface> List If given type is null, will try to find suitable types by examining the given ifaces. If a non-null type is given, returns the given type. | |
| isFileDescriptorSupported | back to summary |
|---|---|
| public boolean isFileDescriptorSupported() | |
| queueCallback | back to summary |
|---|---|
| public void queueCallback(MethodCall _call, Method _method, CallbackHandler<?> _callback) | |
| removeFallback | back to summary |
|---|---|
| public void removeFallback(String _objectprefix) Remove a fallback
| |
| removeGenericSigHandler | back to summary |
|---|---|
| protected abstract void removeGenericSigHandler(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) throws DBusException Remove a generic signal handler with the given
| |
| removeSigHandler | back to summary |
|---|---|
| protected abstract <T extends DBusSignal> void removeSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) throws DBusException Remove a match rule with the given
| |
| removeSigHandler | back to summary |
|---|---|
| public <T extends DBusSignal> void removeSigHandler(Class<T> _type, DBusSigHandler<T> _handler) throws DBusException Remove a Signal Handler. Stops listening for this signal.
| |
| removeSigHandler | back to summary |
|---|---|
| public <T extends DBusSignal> void removeSigHandler(Class<T> _type, DBusInterface _object, DBusSigHandler<T> _handler) throws DBusException Remove a Signal Handler. Stops listening for this signal.
| |
| setWeakReferences | back to summary |
|---|---|
| public void setWeakReferences(boolean _weakreferences)
Deprecated for removal since 5.1.0 - 2024-07-12. should be set during construction time (using the builder), will be removed in future If set to true the bus will not hold a strong reference to exported objects. If they go out of scope they will automatically be unexported from the bus. The default is to hold a strong reference, which means objects must be explicitly unexported before they will be garbage collected.
| |