Skip to content

Commit 906e1ab

Browse files
author
Aaron
committed
Connections
1 parent f913d0f commit 906e1ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dslink-v2/src/main/java/org/iot/dsa/driver/DSConnection.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,24 +321,24 @@ protected void onChildChanged(DSInfo info) {
321321
protected abstract void onConnect();
322322

323323
/**
324-
* Override point, called by connOkDown(). By default, this notifies all DSIConnected
325-
* objects in the subtree. Overrides should probably call super.onConnected unless they
326-
* have a very good reason not to.
324+
* Override point, called by connOk() when transitioning to connected. By default, this
325+
* notifies all DSIConnected objects in the subtree. Overrides should probably call
326+
* super.onConnected unless they have a very good reason not to.
327327
*/
328328
protected void onConnected() {
329329
notifyDescendents(this);
330330
}
331331

332332
/**
333-
* You must call connDown, it can be async after this method has returned. You can throw
334-
* an exception from this method instead of calling connDown.
333+
* You must call connDown(), it can be async and after this method has returned. Throwing an
334+
* exception from this method will result in a call to connDown().
335335
*/
336336
protected abstract void onDisconnect();
337337

338338
/**
339-
* Override point, called by connDown(). By default, this notifies all DSIConnected objects
340-
* in the subtree of the state change. Overrides should probably call super.onDisconnected
341-
* untless they have a very good reason not to.
339+
* Override point, called by connDown() when transitioning to disconnected. By default, this
340+
* notifies all DSIConnected objects in the subtree of the state change. Overrides should
341+
* probably call super.onDisconnected unless they have a very good reason not to.
342342
*/
343343
protected void onDisconnected() {
344344
notifyDescendents(this);

0 commit comments

Comments
 (0)