keycloak-federation
公開メンバ関数 | 全メンバ一覧
org.freedesktop.dbus.DBusConnection._sighandler クラス
org.freedesktop.dbus.DBusConnection._sighandler の継承関係図
Inheritance graph
org.freedesktop.dbus.DBusConnection._sighandler 連携図
Collaboration graph

公開メンバ関数

void handle (DBusSignal s)
 
void handle (T s)
 

詳解

関数詳解

◆ handle() [1/2]

void org.freedesktop.dbus.DBusSigHandler< T extends DBusSignal >.handle ( s)
inherited

Handle a signal.

引数
sThe signal to handle. If such a class exists, the signal will be an instance of the class with the correct type signature. Otherwise it will be an instance of DBusSignal

◆ handle() [2/2]

void org.freedesktop.dbus.DBusConnection._sighandler.handle ( DBusSignal  s)
inline
155  {
156  if (s instanceof org.freedesktop.DBus.Local.Disconnected) {
157  if (Debug.debug) Debug.print(Debug.WARN, "Handling disconnected signal from bus");
158  try {
159  Error err = new Error(
160  "org.freedesktop.DBus.Local", "org.freedesktop.DBus.Local.disconnected", 0, "s", new Object[]{getString("disconnected")});
161  if (null != pendingCalls) synchronized (pendingCalls) {
162  long[] set = pendingCalls.getKeys();
163  for (long l : set)
164  if (-1 != l) {
165  MethodCall m = pendingCalls.remove(l);
166  if (null != m)
167  m.setReply(err);
168  }
169  }
170  synchronized (pendingErrors) {
171  pendingErrors.add(err);
172  }
173  } catch (DBusException DBe) {
174  }
175  } else if (s instanceof org.freedesktop.DBus.NameAcquired) {
176  busnames.add(((org.freedesktop.DBus.NameAcquired) s).name);
177  }
178  }
MethodCall remove(long l)
Definition: EfficientMap.java:85
Definition: DBus.java:32
List< String > busnames
Definition: DBusConnection.java:192
long [] getKeys()
Definition: EfficientMap.java:50
Definition: DBus.java:102
synchronized void setReply(Message reply)
Definition: MethodCall.java:131
EfficientMap pendingCalls
Definition: AbstractConnection.java:245
LinkedList< Error > pendingErrors
Definition: AbstractConnection.java:253
Definition: DBus.java:251

このクラス詳解は次のファイルから抽出されました: