YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
org.fourthline.cling.protocol.ReceivingAsync< M extends UpnpMessage > Class Template Referenceabstract

Supertype for all asynchronously executing protocols, handling reception of UPnP messages. More...

Inheritance diagram for org.fourthline.cling.protocol.ReceivingAsync< M extends UpnpMessage >:
Inheritance graph
Collaboration diagram for org.fourthline.cling.protocol.ReceivingAsync< M extends UpnpMessage >:
Collaboration graph

Public Member Functions

UpnpService getUpnpService ()
 
getInputMessage ()
 
void run ()
 
String toString ()
 

Protected Member Functions

 ReceivingAsync (UpnpService upnpService, M inputMessage)
 
boolean waitBeforeExecution () throws InterruptedException
 Provides an opportunity to pause before executing the protocol.
 
abstract void execute () throws RouterException
 

Detailed Description

Supertype for all asynchronously executing protocols, handling reception of UPnP messages.

After instantiation by the ProtocolFactory, this protocol run()s and calls its own waitBeforeExecution() method. By default, the protocol does not wait before then proceeding with execute().

Parameters
<M>The type of UPnP message handled by this protocol.
Author
Christian Bauer

Member Function Documentation

◆ waitBeforeExecution()

boolean org.fourthline.cling.protocol.ReceivingAsync< M extends UpnpMessage >.waitBeforeExecution ( ) throws InterruptedException
protected

Provides an opportunity to pause before executing the protocol.

Returns
true (default) if execution should continue after waiting.
Exceptions
InterruptedExceptionIf waiting has been interrupted, which also stops execution.

The documentation for this class was generated from the following file: