コード例 #1
0
 /** @syncpriority 200 */
 public synchronized void startBroadcast() {
   if (broadcasting) throw new SeekInnerCalmException();
   log.debug("Starting pagebuffer for " + streamId);
   pageBuf.start();
   broadcasting = true;
   log.info("Starting broadcast of " + pageBuf.getTotalPages() + " pages for " + streamId);
   // If we're already rebroadcasting, this means that we've completed
   // reception and are now a broadcaster - so we don't need to announce
   // ourselves again
   if (rebroadcasting) rebroadcasting = false;
   else mina.getStreamAdvertiser().advertiseStream(streamId);
 }
コード例 #2
0
 /** @syncpriority 200 */
 public synchronized void startRebroadcast() {
   if (rebroadcasting) throw new SeekInnerCalmException();
   rebroadcasting = true;
   log.info("Beginning rebroadcast for stream " + streamId);
   mina.getStreamAdvertiser().advertiseStream(streamId);
 }