Example usage for com.liferay.portal.kernel.messaging DestinationConfiguration DESTINATION_TYPE_SYNCHRONOUS

List of usage examples for com.liferay.portal.kernel.messaging DestinationConfiguration DESTINATION_TYPE_SYNCHRONOUS

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.messaging DestinationConfiguration DESTINATION_TYPE_SYNCHRONOUS.

Prototype

String DESTINATION_TYPE_SYNCHRONOUS

To view the source code for com.liferay.portal.kernel.messaging DestinationConfiguration DESTINATION_TYPE_SYNCHRONOUS.

Click Source Link

Usage

From source file:com.liferay.adaptive.media.image.internal.configuration.AMImageConfigurationHelperImpl.java

License:Open Source License

@Activate
protected void activate() {
    DestinationConfiguration destinationConfiguration = new DestinationConfiguration(
            DestinationConfiguration.DESTINATION_TYPE_SYNCHRONOUS,
            AMImageDestinationNames.ADAPTIVE_MEDIA_IMAGE_CONFIGURATION);

    Destination destination = _destinationFactory.createDestination(destinationConfiguration);

    _messageBus.addDestination(destination);
}

From source file:com.liferay.exportimport.lifecycle.ExportImportLifecycleManagerImpl.java

License:Open Source License

@Activate
protected void activate(BundleContext bundleContext) {
    _bundleContext = bundleContext;/*from   w  w w  .  ja v a2  s. co  m*/

    registerDestination(bundleContext, DestinationConfiguration.DESTINATION_TYPE_SERIAL,
            DestinationNames.EXPORT_IMPORT_LIFECYCLE_EVENT_ASYNC);
    registerDestination(bundleContext, DestinationConfiguration.DESTINATION_TYPE_SYNCHRONOUS,
            DestinationNames.EXPORT_IMPORT_LIFECYCLE_EVENT_SYNC);
}