|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.novanic.eventservice.client.event.listener.unlisten.DefaultUnlistenEvent
public class DefaultUnlistenEvent
An UnlistenEvent will be triggered when a timeout or a domain specific unlisten/deregistration occurs. The UnlistenEvent is created by
EventService when unlisten is called for a user. It will also be returned as an
event (from the listen method) and will be added to the UnlistenDomain DomainFactory.UNLISTEN_DOMAIN.
EventService.unlisten(),
EventService.unlisten(Domain),
EventService.unlisten(java.util.Set),
Serialized Form| Constructor Summary | |
|---|---|
DefaultUnlistenEvent()
Creates an UnlistenEvent for all domains (global). |
|
DefaultUnlistenEvent(java.util.Set<Domain> aDomains,
java.lang.String aUserId,
boolean isTimeout)
Creates an UnlistenEvent for a specific domain. |
|
DefaultUnlistenEvent(java.util.Set<Domain> aDomains,
java.lang.String aUserId,
boolean isTimeout,
boolean isLocal)
Creates an UnlistenEvent for a specific domain. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anObject)
|
java.util.Set<Domain> |
getDomains()
Returns the domain for which isn't listening anymore. |
java.lang.String |
getUserId()
Returns the unlistened user id for the UnlistenEvent. |
int |
hashCode()
|
boolean |
isLocal()
Returns true when the UnlistenEvent is triggered from the client side. |
boolean |
isTimeout()
Returns true when the UnlistenEvent is a timeout, otherwise false (for example a domain specific UnlistenEvent). |
void |
setDomains(java.util.Set<Domain> aDomains)
A Domain can be set to the UnlistenEvent when the unlisten event
is domain specific. |
void |
setLocal(boolean isLocal)
Sets the local flag. |
void |
setTimeout(boolean aTimeout)
Sets the timeout flag. |
void |
setUserId(java.lang.String aUserId)
Sets the unlistened user id for the UnlistenEvent. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUnlistenEvent()
public DefaultUnlistenEvent(java.util.Set<Domain> aDomains,
java.lang.String aUserId,
boolean isTimeout)
aDomains - Domain which are unlistened (in combination with the user id)aUserId - user id which is unlistened (in combination with the domain)isTimeout - true when the creation of the UnlistenEvent is caused by a timeout
public DefaultUnlistenEvent(java.util.Set<Domain> aDomains,
java.lang.String aUserId,
boolean isTimeout,
boolean isLocal)
UnlistenEvent.isLocal()).
aDomains - Domain which are unlistened (in combination with the user id)aUserId - user id which is unlistened (in combination with the domain)isTimeout - true when the creation of the UnlistenEvent is caused by a timeoutisLocal - true when the UnlistenEvent was created from the client side (see UnlistenEvent.isLocal()).| Method Detail |
|---|
public void setDomains(java.util.Set<Domain> aDomains)
Domain can be set to the UnlistenEvent when the unlisten event
is domain specific.
setDomains in interface UnlistenEventaDomains - unlistened domainspublic java.util.Set<Domain> getDomains()
getDomains in interface UnlistenEventpublic void setUserId(java.lang.String aUserId)
setUserId in interface UnlistenEventaUserId - unlistened user idpublic java.lang.String getUserId()
getUserId in interface UnlistenEventpublic boolean isTimeout()
isTimeout in interface UnlistenEventpublic void setTimeout(boolean aTimeout)
setTimeout in interface UnlistenEventaTimeout - true when the UnlistenEvent marks a timeout, otherwise false (for example a domain specific UnlistenEvent)public boolean isLocal()
isLocal in interface UnlistenEventpublic void setLocal(boolean isLocal)
setLocal in interface UnlistenEventisLocal - true when triggered from client side, otherwise falsepublic boolean equals(java.lang.Object anObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||