org.fourthline.cling.protocol

## Class SendingAsync

- java.lang.Object
- - org.fourthline.cling.protocol.SendingAsync

- All Implemented Interfaces:
    Runnable
  Direct Known Subclasses:
    SendingNotification, SendingSearch, SendingSync

      public abstract class SendingAsync
      extends Object
      implements Runnable

  Supertype for all synchronously executing protocols, sending UPnP messages.

  After instantiation by the `ProtocolFactory`, this protocol `run()`s and calls its `execute()` method.

  A `RouterException` during execution will be wrapped in a fatal `RuntimeException`, unless its cause is an `InterruptedException`, in which case an INFO message will be logged.

  Author:
    Christian Bauer

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `SendingAsync(UpnpService upnpService)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract void` | `execute()`
    `UpnpService` | `getUpnpService()`
    `void` | `run()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SendingAsync

          protected SendingAsync(UpnpService upnpService)

  - ### Method Detail

    - #### getUpnpService

          public UpnpService getUpnpService()

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`

    - #### execute

          protected abstract void execute()
                                   throws RouterException

      Throws:
        `RouterException`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014 4th Line GmbH, Switzerland. All Rights Reserved.