Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.commons.broker
Class AsyncBrokerService<T>

java.lang.Object
  extended by com.genesyslab.platform.applicationblocks.commons.broker.BrokerServiceBase<T>
      extended by com.genesyslab.platform.applicationblocks.commons.broker.AsyncBrokerServiceBase<T>
          extended by com.genesyslab.platform.applicationblocks.commons.broker.AsyncBrokerService<T>
All Implemented Interfaces:
PublishingService<T>, SubscriptionService<T>, AsyncInvokerSupport

Deprecated. Message Broker Application Block is deprecated. Use setMessageHandler(handler) to handle incoming messages asynchronously.

@Deprecated
public final class AsyncBrokerService<T>
extends AsyncBrokerServiceBase<T>

AsyncBrokerService class implements a general purpose asynchronous publishing broker service.

Usage sample:

[Java]
     AsyncInvoker invoker = new SingleThreadInvoker(
                                    "AsyncBrokerServiceTest-1");
     AsyncBrokerService<SomePublishedEvent> service =
               new AsyncBrokerService<SomePublishedEvent>(invoker);
     Action<SomePublishedEvent> action = Action<SomePublishedEvent>() {
         public void handle(final SomePublishedEvent event) {
             // do something with event
         }
     }
     service.register(action, null);

     SomePublishedEvent event = new SomePublishedEvent(...);
     service.publish(event);
 


Constructor Summary
AsyncBrokerService()
          Deprecated. Creates an instance.
AsyncBrokerService(AsyncInvoker invoker)
          Deprecated. Creates an instance.
 
Method Summary
 
Methods inherited from class com.genesyslab.platform.applicationblocks.commons.broker.AsyncBrokerServiceBase
publish, setInvoker
 
Methods inherited from class com.genesyslab.platform.applicationblocks.commons.broker.BrokerServiceBase
notify, onNotificationException, onPublish, register, register, switchSubscribersList, unregister, unregister, unregisterAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncBrokerService

public AsyncBrokerService()
Deprecated. 
Creates an instance. Asynchronous event broker service must be initialized with asynchronous invoker to be able to handle events.

See Also:
AsyncBrokerServiceBase.setInvoker(AsyncInvoker)

AsyncBrokerService

public AsyncBrokerService(AsyncInvoker invoker)
Deprecated. 
Creates an instance.

Parameters:
invoker - asynchronous invoker to publish events with

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.