com.genesyslab.platform.applicationblocks.commons.broker
Class AsyncBrokerService<T>
java.lang.Object
com.genesyslab.platform.applicationblocks.commons.broker.BrokerServiceBase<T>
com.genesyslab.platform.applicationblocks.commons.broker.AsyncBrokerServiceBase<T>
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);
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.