Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.client.framework
Class SubscriptionEvent

java.lang.Object
  extended by org.jboss.errai.bus.client.framework.BusEvent
      extended by 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)
           
 
Method Summary
 int getCount()
           
 String getSessionId()
          Return the associated sessionId with the subscription event.
 String getSubject()
          Get the subject being subscribed to.
 boolean isLastRemoteSubject()
           
 boolean isLocalOnly()
           
 boolean isNew()
           
 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.
 
Methods inherited from class org.jboss.errai.bus.client.framework.BusEvent
isDisposeListener, setDisposeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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:

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.