Пример #1
0
 /** {@inheritDoc} */
 @Override
 public void expire() {
   try {
     eventDispatcher.shutdown();
   } finally {
     super.expire();
   }
 }
Пример #2
0
 /**
  * Submits {@link #notifySctpConnectionReadyInEventDispatcher()} to {@link #eventDispatcher} for
  * asynchronous execution.
  */
 private void notifySctpConnectionReady() {
   if (!isExpired()) {
     eventDispatcher.execute(
         new Runnable() {
           @Override
           public void run() {
             notifySctpConnectionReadyInEventDispatcher();
           }
         });
   }
 }
Пример #3
0
 /**
  * Submits {@link #notifyChannelOpenedInEventDispatcher(WebRtcDataStream)} to {@link
  * #eventDispatcher} for asynchronous execution.
  *
  * @param dataChannel
  */
 private void notifyChannelOpened(final WebRtcDataStream dataChannel) {
   if (!isExpired()) {
     eventDispatcher.execute(
         new Runnable() {
           @Override
           public void run() {
             notifyChannelOpenedInEventDispatcher(dataChannel);
           }
         });
   }
 }