public NotificationConnection(OutputStream out, int bufsiz) { this.out = out; if (bufsiz <= DefaultConfiguration.NOTIF_MIN_BUFSIZ) this.bufsiz = DefaultConfiguration.NOTIF_MAX_BUFSIZ; else this.bufsiz = bufsiz; dispatchThr = new Thread(this); dispatchThr.start(); }
/** * Reinitialized this connection and restarts the dispatch thread. This method is called everytime * the client reconnects to the server because the connection had dropped. */ public void reinit(OutputStream out) { this.out = out; isIOException = false; dispatchThr = new Thread(this); dispatchThr.start(); }