public final void addCallback ( StatusCallback callback ) { synchronized ( callbacks ) { if ( callback != null && ! callbacks . contains ( callback ) ) { callbacks . add ( callback ) ; } } }
Adds a callback that will be called when the state of this Session changes .