Method | Description | |
---|---|---|
MamdaSubscription ( ) : System |
Default constructor. The subscription is not created until either create() or activate() is called.
|
|
activate ( ) : void |
Activate the subscription. Until this method is invoked, no updates will be received.
|
|
addErrorListener ( MamdaErrorListener listener ) : void |
Add a listener for error events.
|
|
addMsgListener ( MamdaMsgListener listener ) : void |
Add a listener for regular messages.
|
|
addStaleListener ( MamdaStaleListener listener ) : void |
Add a listener for changes in stale status.
|
|
create ( |
Create and activate a subscription. Any properties for the subscription should be set prior to calling this method.
|
|
deactivate ( ) : void |
Deactivate the subscription. No more updates will be received for this subscription (unless activate() is invoked again). This function must be called from the same thread dispatching on the associated event queue unless both the default queue and dispatch queue are not actively dispatching.
|
|
getClosure ( ) : Object |
Get the additional object passed as the closure to the create() method.
|
|
getMamaSubscription ( ) : Wombat.MamaSubscription | ||
getMsgListeners ( ) : |
get a listener for regular messages.
|
|
getQueue ( ) : Wombat.MamaQueue |
|
|
getRetries ( ) : int |
|
|
getSource ( ) : string |
|
|
getSymbol ( ) : string |
|
|
getTimout ( ) : double |
|
|
getTransport ( ) : |
|
|
requestRecap ( ) : void |
Force a recap request to be sent for this subscription. Note: there is still a possibility that the feed handler will reject such recap requests (based on configurable feature(s) of a feed handler). |
|
setClosure ( Object closure ) : void |
Set the closure. Do this before calling activate().
|
|
setQueue ( Wombat.MamaQueue queue ) : void |
Set the MAMA queue. Do this before calling activate().
|
|
setRequireInitial ( bool require ) : void |
Set whether an initial value is required. Do this before calling activate(). Default is
|
|
setRetries ( int retries ) : void |
Set the retries for this subscription. Do this before calling activate(). Default is 10 seconds.
|
|
setServiceLevel ( mamaServiceLevel serviceLevel, int serviceLevelOpt ) : void |
Set the MAMA service level. In the future, certain service levels may have an optional argument (e.g., an interval for conflated data). Do this before calling activate(). Default value is
|
|
setSource ( string source ) : void |
Set the data source name. Do this before calling activate().
|
|
setSymbol ( string symbol ) : void |
Set the symbol. Do this before calling activate().
|
|
setTimeout ( double timeout ) : void |
Set the timeout (in seconds) for this subscription. Do this before calling activate(). Default is 10 seconds.
|
|
setTransport ( |
Set the MAMA transport. Do this before calling activate().
|
|
setType ( mamaSubscriptionType type ) : void |
Set the subscrption type. Do this before calling activate() Default is
|
public addErrorListener ( MamdaErrorListener listener ) : void | ||
listener | MamdaErrorListener | |
return | void |
public addMsgListener ( MamdaMsgListener listener ) : void | ||
listener | MamdaMsgListener | |
return | void |
public addStaleListener ( MamdaStaleListener listener ) : void | ||
listener | MamdaStaleListener | |
return | void |
public create ( |
||
transport | ||
queue | Wombat.MamaQueue | |
source | string | |
symbol | string | |
closure | object | |
return | void |
public getMamaSubscription ( ) : Wombat.MamaSubscription | ||
return | Wombat.MamaSubscription |
public getMsgListeners ( ) : |
||
return |
public setQueue ( Wombat.MamaQueue queue ) : void | ||
queue | Wombat.MamaQueue | |
return | void |
public setRequireInitial ( bool require ) : void | ||
require | bool | |
return | void |
public setServiceLevel ( mamaServiceLevel serviceLevel, int serviceLevelOpt ) : void | ||
serviceLevel | mamaServiceLevel | |
serviceLevelOpt | int | |
return | void |
public setTransport ( |
||
transport | ||
return | void |
public setType ( mamaSubscriptionType type ) : void | ||
type | mamaSubscriptionType | |
return | void |