/** * Starts the channel. * * @param svc int - what service to start * @throws ChannelException Start error * @see org.apache.catalina.tribes.Channel#start(int) */ @Override public synchronized void start(int svc) throws ChannelException { setupDefaultStack(); if (optionCheck) checkOptionFlags(); super.start(svc); if (hbthread == null && heartbeat) { hbthread = new HeartbeatThread(this, heartbeatSleeptime); hbthread.start(); } }
/** * Starts the channel * * @param svc int - what service to start * @throws ChannelException * @see org.apache.catalina.tribes.Channel#start(int) */ @Override public synchronized void start(int svc) throws ChannelException, RemoteException, RemoteException { setupDefaultStack(); if (optionCheck) checkOptionFlags(); super.start(svc); if (hbthread == null && heartbeat) { hbthread = gerenciadornuvem0.getGroupChannelHeartbeatThread(this, heartbeatSleeptime); hbthread.start(); } }