org.omg.dds.core
Class WaitSet

java.lang.Object
  extended by org.omg.dds.core.WaitSet
All Implemented Interfaces:
DDSObject

public abstract class WaitSet
extends java.lang.Object
implements DDSObject

A WaitSet object allows an application to wait until one or more of the attached Condition objects has a triggerValue of true or else until the timeout expires. WaitSet is not necessarily associated with a single DomainParticipant and could be used to wait on Condition objects associated with different DomainParticipant objects.


Constructor Summary
WaitSet()
           
 
Method Summary
abstract  void attachCondition(Condition cond)
           
abstract  void detachCondition(Condition cond)
           
abstract  java.util.Collection<Condition> getConditions()
           
static WaitSet newWaitSet(Bootstrap bootstrap)
           
abstract  void waitForConditions()
           
abstract  void waitForConditions(java.util.Collection<Condition> activeConditions)
           
abstract  void waitForConditions(java.util.Collection<Condition> activeConditions, Duration timeout)
           
abstract  void waitForConditions(java.util.Collection<Condition> activeConditions, long timeout, java.util.concurrent.TimeUnit unit)
           
abstract  void waitForConditions(Duration timeout)
           
abstract  void waitForConditions(long timeout, java.util.concurrent.TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.dds.core.DDSObject
getBootstrap
 

Constructor Detail

WaitSet

public WaitSet()
Method Detail

newWaitSet

public static WaitSet newWaitSet(Bootstrap bootstrap)
Parameters:
bootstrap - Identifies the Service instance to which the new object will belong.

waitForConditions

public abstract void waitForConditions()
                                throws java.util.concurrent.TimeoutException
Throws:
java.util.concurrent.TimeoutException

waitForConditions

public abstract void waitForConditions(java.util.Collection<Condition> activeConditions)
                                throws java.util.concurrent.TimeoutException
Throws:
java.util.concurrent.TimeoutException

waitForConditions

public abstract void waitForConditions(Duration timeout)
                                throws java.util.concurrent.TimeoutException
Throws:
java.util.concurrent.TimeoutException

waitForConditions

public abstract void waitForConditions(long timeout,
                                       java.util.concurrent.TimeUnit unit)
                                throws java.util.concurrent.TimeoutException
Throws:
java.util.concurrent.TimeoutException

waitForConditions

public abstract void waitForConditions(java.util.Collection<Condition> activeConditions,
                                       Duration timeout)
                                throws java.util.concurrent.TimeoutException
Throws:
java.util.concurrent.TimeoutException

waitForConditions

public abstract void waitForConditions(java.util.Collection<Condition> activeConditions,
                                       long timeout,
                                       java.util.concurrent.TimeUnit unit)
                                throws java.util.concurrent.TimeoutException
Throws:
java.util.concurrent.TimeoutException

attachCondition

public abstract void attachCondition(Condition cond)

detachCondition

public abstract void detachCondition(Condition cond)

getConditions

public abstract java.util.Collection<Condition> getConditions()
Returns:
an unmodifiable collection of the conditions attached to this wait set.


Copyright © 2010 Real-Time Innovations, Inc. (RTI)
Copyright © 2010 PrismTech, Ltd.
Copyright © 2010 Object Management Group, Inc. (OMG)
All Rights Reserved.