PublishingService<T>
, SubscriptionService<T>
, AsyncInvokerSupport
, InvokerInfo
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 | Description |
---|---|
AsyncBrokerService() |
Deprecated.
Creates an instance.
|
AsyncBrokerService(AsyncInvoker invoker) |
Deprecated.
Creates an instance.
|
getInvokesCount, getInvokesRejected, getQueueMaxSize, getQueueSize, publish, setInvoker
notify, onNotificationException, onPublish, register, register, switchSubscribersList, unregister, unregister, unregisterAll
public AsyncBrokerService()
public AsyncBrokerService(AsyncInvoker invoker)
invoker
- asynchronous invoker to publish events withSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.