Package | com.pcbsys.nirvana.client |
Class | public class nSubscriptionAttributes |
Inheritance | nSubscriptionAttributes Object |
Since : | 6.0 |
Public Properties
Property | Defined By | ||
---|---|---|---|
channel : nChannel [read-only]
Returns the valid nChannel object resulting from the subscription request
| nSubscriptionAttributes | ||
channelName : String [read-only]
Return the name of the channel
| nSubscriptionAttributes | ||
EID : Long [read-only]
Return the event id that the subscription will start from
| nSubscriptionAttributes | ||
error : Error [read-only]
If the channel subscription failed, this method will return a subclass of
Error that will detail the cause of the failure
| nSubscriptionAttributes | ||
listener : nEventListener [read-only]
Return the nEventListener associated with this subscription
| nSubscriptionAttributes | ||
selector : String [read-only]
Return the selector for event event filtering on this subscription
| nSubscriptionAttributes |
Public Methods
Method | Defined By | ||
---|---|---|---|
nSubscriptionAttributes(name:String, eid:Long, eventCallback:nEventListener, selector:String = null)
Constructor for setting up the attributes for a subscription to a channel
| nSubscriptionAttributes | ||
wasSuccessful():Boolean
Return whether the channel has been successfully found and subscribed to
| nSubscriptionAttributes |
Property Detail
channel | property |
channel:nChannel
[read-only] Returns the valid nChannel object resulting from the subscription request
Implementation
public function get channel():nChannel
channelName | property |
channelName:String
[read-only] Return the name of the channel
Implementation
public function get channelName():String
EID | property |
EID:Long
[read-only] Return the event id that the subscription will start from
Implementation
public function get EID():Long
error | property |
error:Error
[read-only] If the channel subscription failed, this method will return a subclass of Error that will detail the cause of the failure
Implementation
public function get error():Error
listener | property |
listener:nEventListener
[read-only] Return the nEventListener associated with this subscription
Implementation
public function get listener():nEventListener
selector | property |
selector:String
[read-only] Return the selector for event event filtering on this subscription
Implementation
public function get selector():String
Constructor Detail
nSubscriptionAttributes | () | Constructor |
public function nSubscriptionAttributes(name:String, eid:Long, eventCallback:nEventListener, selector:String = null)
Constructor for setting up the attributes for a subscription to a channel
Parametersname:String — - the full name of the channel
| |
eid:Long — - an optional selector provided for event filtering
| |
eventCallback:nEventListener — - an initial start event id
| |
selector:String (default = null ) — - the nEventListener that will receive the callback when events are published
|
Method Detail
wasSuccessful | () | method |
public function wasSuccessful():Boolean
Return whether the channel has been successfully found and subscribed to
ReturnsBoolean — true or false
|