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

公開メンバ関数

 _thread ()
 
void run ()
 

詳解

構築子と解体子

◆ _thread()

org.freedesktop.dbus.AbstractConnection._thread._thread ( )
inline
76  {
77  setName("DBusConnection");
78  }

関数詳解

◆ run()

void org.freedesktop.dbus.AbstractConnection._thread.run ( )
inline
80  {
81  try {
82  Message m = null;
83  while (_run) {
84  m = null;
85 
86  // read from the wire
87  try {
88  // this blocks on outgoing being non-empty or a message being available.
89  m = readIncoming();
90  if (m != null) {
91  if (Debug.debug) Debug.print(Debug.VERBOSE, "Got Incoming Message: " + m);
92  synchronized (this) {
93  notifyAll();
94  }
95 
96  if (m instanceof DBusSignal)
97  handleMessage((DBusSignal) m);
98  else if (m instanceof MethodCall)
99  handleMessage((MethodCall) m);
100  else if (m instanceof MethodReturn)
101  handleMessage((MethodReturn) m);
102  else if (m instanceof Error)
103  handleMessage((Error) m);
104 
105  m = null;
106  }
107  } catch (Exception e) {
108  if (EXCEPTION_DEBUG && Debug.debug) Debug.print(Debug.ERR, e);
109  if (e instanceof FatalException) {
110  disconnect();
111  }
112  }
113 
114  }
115  synchronized (this) {
116  notifyAll();
117  }
118  } catch (Exception e) {
119  if (Debug.debug && EXCEPTION_DEBUG) Debug.print(Debug.ERR, e);
120  }
121  }
void disconnect()
Definition: AbstractConnection.java:575
void handleMessage(final MethodCall m)
Definition: AbstractConnection.java:702
static final boolean EXCEPTION_DEBUG
Definition: AbstractConnection.java:261
boolean _run
Definition: AbstractConnection.java:251
Message readIncoming()
Definition: AbstractConnection.java:1042

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