org.jboss.errai.bus.client.framework
Class SubscriptionEvent
java.lang.Object
org.jboss.errai.bus.client.framework.BusEvent
org.jboss.errai.bus.client.framework.SubscriptionEvent
public class SubscriptionEvent
- extends BusEvent
Contains details on the subscription event that has occured on the bus.
- See Also:
SubscribeListener
,
UnsubscribeListener
Constructor Summary |
SubscriptionEvent(boolean remote,
boolean lastRemoteSubject,
boolean localOnly,
boolean isNew,
int count,
String sessionId,
String subject)
|
SubscriptionEvent(boolean remote,
String sessionId,
int count,
boolean isNew,
String subject)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionEvent
public SubscriptionEvent(boolean remote,
String sessionId,
int count,
boolean isNew,
String subject)
SubscriptionEvent
public SubscriptionEvent(boolean remote,
boolean lastRemoteSubject,
boolean localOnly,
boolean isNew,
int count,
String sessionId,
String subject)
getSessionId
public String getSessionId()
- Return the associated sessionId with the subscription event.
- Returns:
- - Session instance.
isRemote
public boolean isRemote()
- Indicates whether or not this is a remote subscription event, meaning that the subscription is to a foreign-bus,
rather than to the current bus.
- Returns:
isNew
public boolean isNew()
isLastRemoteSubject
public boolean isLastRemoteSubject()
isLocalOnly
public boolean isLocalOnly()
getCount
public int getCount()
getSubject
public String getSubject()
- Get the subject being subscribed to.
- Returns:
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.