public class MamaBasicSubscription
extends java.lang.Object
Constructor and Description |
---|
MamaBasicSubscription()
The constructor allocates the underlying C subscription.
|
Modifier and Type | Method and Description |
---|---|
void |
createBasicSubscription(MamaBasicSubscriptionCallback callback,
MamaTransport transport,
MamaQueue queue,
java.lang.String topic,
java.lang.Object closure)
Create a basic subscription without marketdata semantics.
|
void |
createBasicWildCardSubscription(MamaBasicWildCardSubscriptionCallback callback,
MamaTransport transport,
MamaQueue queue,
java.lang.String source,
java.lang.String topic,
java.lang.Object closure)
Create a basic wildcard subscription.
|
void |
deallocate()
De-allocates the underlying C subscription.
|
void |
destroy()
This function will destroy the subscription, it must be called from
the same thread that is processing the queue for the subscription.
|
void |
destroyEx()
This function will destroy the subscription and can be called from
any thread.
|
java.lang.Object |
getClosure()
This function returns the closure supplied to the createSubscription
function.
|
long |
getPointerVal()
This function returns the pointer to the underlying C subscription.
|
MamaSubscriptionState |
getState()
This function returns the current state of the subscription as one
of the MamaSubscriptionState instances, see this class for more
information.
|
java.lang.String |
getSymbol()
This function returns the symbol subscribed to.
|
public MamaBasicSubscription()
public void createBasicSubscription(MamaBasicSubscriptionCallback callback, MamaTransport transport, MamaQueue queue, java.lang.String topic, java.lang.Object closure)
callback
- The object implementing the callback functions.transport
- The MamaTransport.queue
- The MamaQueue.topic
- The symbol name.closure
- The closure will be passed to subsequent callback invocations
for this subscription.public void createBasicWildCardSubscription(MamaBasicWildCardSubscriptionCallback callback, MamaTransport transport, MamaQueue queue, java.lang.String source, java.lang.String topic, java.lang.Object closure)
subscription
- The subscription.transport
- The transport to use.queue
- The mama queue.callbacks
- The mamaMsgCallbacks structure containing the callback
functions.source
- The source name of the feed handler to provide the
subscription.symbol
- The symbol name.closure
- The closure will be passed to subsequent callback
invocations for this subscription.public java.lang.Object getClosure()
public long getPointerVal()
public MamaSubscriptionState getState()
public void deallocate()
public void destroy()
public void destroyEx()
public java.lang.String getSymbol()
Copyright 2011 NYSE Technologies