|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Consumer
An entity that groups several registrations under the same scope, for exemple a Consumer entity could be related to several registrations for the same consumer with different capabilities.
Method Summary | |
---|---|
ConsumerCapabilities |
getCapabilities()
|
java.lang.String |
getConsumerAgent()
|
ConsumerGroup |
getGroup()
Returns the group that this consumer belongs to. |
java.lang.String |
getId()
Retrieves this Consumer's identity, which uniquely identifies the Consumer since the name cannot be relied on. |
java.lang.String |
getName()
Return the consumer name. |
java.util.Collection |
getRegistrations()
Return all the registrations for the specified consumer. |
RegistrationStatus |
getStatus()
Return the registration status of the consumer entity. |
void |
setCapabilities(ConsumerCapabilities capabilities)
|
void |
setConsumerAgent(java.lang.String consumerAgent)
|
void |
setGroup(ConsumerGroup group)
|
void |
setStatus(RegistrationStatus status)
Set the registration status of the consumer entity. |
Method Detail |
---|
java.lang.String getName()
RegistrationStatus getStatus()
void setStatus(RegistrationStatus status)
status
- the registration statusjava.util.Collection getRegistrations() throws RegistrationException
RegistrationException
ConsumerGroup getGroup()
java.lang.String getId()
RegistrationPolicy
to determine what the Consumer's identity is. Note also that this is
different from the Consumer's database identifier.
ConsumerCapabilities getCapabilities()
void setCapabilities(ConsumerCapabilities capabilities)
void setGroup(ConsumerGroup group) throws RegistrationException, DuplicateRegistrationException
RegistrationException
DuplicateRegistrationException
java.lang.String getConsumerAgent()
void setConsumerAgent(java.lang.String consumerAgent) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |