![]() |
OpenSplice Java 5 DCPS
v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
OpenSplice-specific extension of org.omg.dds.domain.DomainParticipantFactory with support for detaching from all domains. More...
Public Member Functions | |
void | detachAllDomains (boolean blockOperations, boolean deleteEntities) |
This operation safely detaches the application from all domains it is currently participating in. More... | |
OpenSplice-specific extension of org.omg.dds.domain.DomainParticipantFactory with support for detaching from all domains.
Definition at line 28 of file DomainParticipantFactory.java.
void org.opensplice.dds.domain.DomainParticipantFactory.detachAllDomains | ( | boolean | blockOperations, |
boolean | deleteEntities | ||
) |
This operation safely detaches the application from all domains it is currently participating in.
Note: This is a proprietary OpenSplice extension.
This operation safely detaches the application from all domains it is currently participating in. When this operation has been performed successfully, the application is no longer connected to any Domain. For Federated domains finishing this operation successfully means that all shared memory segments have been safely un-mapped from the application process. For SingleProcess mode domains this means all services for all domains have been stopped. This allows graceful termination of the OSPL services that run as threads within the application. Graceful termination of services in this mode would for instance allow durability flushing of persistent data and networking termination announcement over the network. When this call returns further access to all domains will be denied and it will not be possible for the application to open or re-open any DDS domain.
The behavior of the detach_all_domains operation is determined by the block_operations and delete_entities parameters:
Note: In federated mode when the detach_all_domain operation is called with block_operations is false and delete_entities is false then the DDS operations which are in progress and which are waiting for some condition to become true or waiting for an event to occur while the detach operation is performed may be blocked.
blockOperations | Indicates whether the application wants any operations that are called while detaching to be blocked or not. |
deleteEntities | Indicates whether the application DDS entities in the 'connected' domains must be deleted synchronously during detaching. |