Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.commons.broker
Interface SubscriptionService<T>

All Known Subinterfaces:
IConfService
All Known Implementing Classes:
AsyncBrokerService, AsyncBrokerServiceBase, BrokerService, BrokerServiceBase, ConfService, DefaultConfCache, EventBrokerService, EventReceivingBrokerService, GFApplicationConfigurationManager, MessageBrokerService, RequestBrokerService, RequestReceivingBrokerService

public interface SubscriptionService<T>

SubscriptionService<T> interface defines subscriber contract for Publish/Subscribe pattern.


Method Summary
 void register(Action<T> handler, Predicate<T> filter)
          Registers an action to be performed when a publishing event occurs.
 void register(Subscriber<T> subscriber)
          Registers a subscriber for notifications about publishing event.
 void unregister(Action<T> handler)
          Unregisters a subscriber from notifications about publishing activities.
 void unregister(Subscriber<T> subscriber)
          Unregisters a subscriber from notifications about publishing activities.
 

Method Detail

register

void register(Subscriber<T> subscriber)
Registers a subscriber for notifications about publishing event.

Parameters:
subscriber - interface of subscriber object being registered

register

void register(Action<T> handler,
              Predicate<T> filter)
Registers an action to be performed when a publishing event occurs.

Parameters:
handler - represents the method that performs an action on the specified object when a publishing event occurs
filter - filter predicate that allows checking whether publishing event should be processed or ignored

unregister

void unregister(Subscriber<T> subscriber)
Unregisters a subscriber from notifications about publishing activities.

Parameters:
subscriber - interface of subscriber object being unregistered

unregister

void unregister(Action<T> handler)
Unregisters a subscriber from notifications about publishing activities.

Parameters:
handler - Represents the method that performs an action on the specified object when a publishing event occurs

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.