Platform SDK Java 8.5 API Reference

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

java.lang.Object
  extended by com.genesyslab.platform.applicationblocks.commons.broker.BrokerServiceBase<T>
      extended by com.genesyslab.platform.applicationblocks.commons.broker.MessageBrokerService<T>
All Implemented Interfaces:
PublishingService<T>, SubscriptionService<T>
Direct Known Subclasses:
EventBrokerService, RequestBrokerService

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

@Deprecated
public abstract class MessageBrokerService<T>
extends BrokerServiceBase<T>

MessageBrokerService<T> class implements the Publish/Subscribe pattern. This class has a specific behavior - it performs synchronous wait in AsyncInvoker for incoming events, so, it requires dedicated invoker to be permanently busy with reading task. The alternative for broker service functionality without fully occupied invoker is to use EventReceivingBrokerService and RequestReceivingBrokerService which are receivers by themselves and can be used as "external receivers" in protocol connections to handle messages directly without intermediate queues.

See Also:
EventReceivingBrokerService, RequestReceivingBrokerService

Nested Class Summary
protected static class MessageBrokerService.LifecycleStage
          Deprecated.  
 
Field Summary
protected  java.lang.Object lifecycleLock
          Deprecated.  
protected  MessageBrokerService.LifecycleStage status
          Deprecated.  
 
Constructor Summary
protected MessageBrokerService()
          Deprecated. Creates an instance of MessageBrokerService class.
protected MessageBrokerService(AsyncInvoker theInvoker)
          Deprecated. Creates an instance of MessageBrokerService class.
 
Method Summary
 void activate()
          Deprecated. Activates the service.
 void deactivate()
          Deprecated. Deactivates the service.
 void dispose()
          Deprecated. Disposes of the service.
protected abstract  Receiver getGenericReceiver()
          Deprecated.  
 AsyncInvoker getInvoker()
          Deprecated. Gets asynchronous invoker.
 boolean isActive()
          Deprecated. Checks if the service is active.
protected abstract  T receive()
          Deprecated.  
 void setInvoker(AsyncInvoker theInvoker)
          Deprecated. Sets asynchronous invoker.
 
Methods inherited from class com.genesyslab.platform.applicationblocks.commons.broker.BrokerServiceBase
notify, onNotificationException, onPublish, publish, register, register, switchSubscribersList, unregister, unregister, unregisterAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

status

protected MessageBrokerService.LifecycleStage status
Deprecated. 

lifecycleLock

protected final java.lang.Object lifecycleLock
Deprecated. 
Constructor Detail

MessageBrokerService

protected MessageBrokerService()
Deprecated. 
Creates an instance of MessageBrokerService class.


MessageBrokerService

protected MessageBrokerService(AsyncInvoker theInvoker)
Deprecated. 
Creates an instance of MessageBrokerService class.

Parameters:
theInvoker - Initializes asynchronous invoker
Method Detail

getInvoker

public AsyncInvoker getInvoker()
Deprecated. 
Gets asynchronous invoker.

Returns:
asynchronous invoker

setInvoker

public void setInvoker(AsyncInvoker theInvoker)
Deprecated. 
Sets asynchronous invoker.

Parameters:
theInvoker - asynchronous invoker

isActive

public boolean isActive()
Deprecated. 
Checks if the service is active.

Returns:
true if the service is active

activate

public void activate()
Deprecated. 
Activates the service.


deactivate

public void deactivate()
Deprecated. 
Deactivates the service.


dispose

public void dispose()
Deprecated. 
Disposes of the service.


receive

protected abstract T receive()
                      throws java.lang.InterruptedException
Deprecated. 
Throws:
java.lang.InterruptedException

getGenericReceiver

protected abstract Receiver getGenericReceiver()
Deprecated. 

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.