|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventConsumer
The event consumer provides a host of functions for clients to consume events. These include subscription to profiles and also the specification of QoS constraints that an event must satisfy prior to delivery. The consumer also includes several utlity functions among them are the ability to retrieve the number of events received at this consumer.
Method Summary | |
---|---|
boolean |
canSatisfyQosRequirements(Profile profile)
Verify if the specify QosConstraints can indeed be satisfied. |
ConsumerConstraints |
createConsumerConstraints(Profile profile)
Create consumer constraints associated with a certain profile |
ConsumerConstraints |
getConsumerConstraints(Profile profile)
Retrieves the ConsumerConstraints for a given profile |
int |
getEntityId()
Retrieve the entity identifier |
Profile[] |
getListOfManagedProfiles()
Gets a list of profiles managed by the consumer |
NBEventListener |
getNBEventListener()
Gets the event listener for the profiles managed by this consumer |
int |
getNumberOfEventsReceivedSoFar()
Retrieves the number of events routed by this event consumer |
long |
getTimeElapsedSinceLastEvent()
Retrieves the time elapsed (in milliseconds) since the last event was received on this consumer |
boolean |
hasConsumerConstraints(Profile profile)
Checks to see if a consumer constraint has been registered for a given profile |
void |
initiateReplay(ReplayRequest replayRequest,
ReplayServiceListener replayListener)
Initiate replay based on the created replay request |
long |
recover(int templateId,
NBRecoveryListener recoveryListener)
This is called by an entity to recover from failures or prolonged disconnects |
void |
setNBEventListener(NBEventListener nbEventListener)
Sets the event listener for the profiles managed by this consumer |
void |
setNBNotificationListener(NBNotificationListener nbNotificationListener)
Sets the notification listener for the profiles (and the specified Qos constraints) managed by this consumer |
void |
subscribeTo(Profile profile)
Subscribe to a profile and register a listener to receive events conforming to the specified constraint |
void |
subscribeTo(Profile profile,
ConsumerConstraints consumerConstraints)
Subscribe to a profile, but request that the event satisfies some QoS constraints prior to delivery. |
void |
unSubscribe(Profile profile)
Unsubscribes a profile. |
Method Detail |
---|
int getEntityId()
int getNumberOfEventsReceivedSoFar()
long getTimeElapsedSinceLastEvent()
boolean hasConsumerConstraints(Profile profile) throws ServiceException
ServiceException
boolean canSatisfyQosRequirements(Profile profile) throws ServiceException
ServiceException
ConsumerConstraints getConsumerConstraints(Profile profile) throws ServiceException
ServiceException
ConsumerConstraints createConsumerConstraints(Profile profile) throws ServiceException
ServiceException
Profile[] getListOfManagedProfiles()
void setNBEventListener(NBEventListener nbEventListener) throws ServiceException
ServiceException
NBEventListener getNBEventListener()
void setNBNotificationListener(NBNotificationListener nbNotificationListener) throws ServiceException
ServiceException
void subscribeTo(Profile profile) throws ServiceException
ServiceException
void unSubscribe(Profile profile) throws ServiceException
ServiceException
void subscribeTo(Profile profile, ConsumerConstraints consumerConstraints) throws ServiceException
ServiceException
long recover(int templateId, NBRecoveryListener recoveryListener) throws ServiceException
ServiceException
void initiateReplay(ReplayRequest replayRequest, ReplayServiceListener replayListener) throws ServiceException
ServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |