public abstract class AbstractProxySupplier extends AbstractProxy implements MessageConsumer, NotifySubscribeOperations
JMXManageable.JMXCallbackconfig_, eventTypes_, logger_, offerManager_, qosSettings_, subscriptionManager_| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProxySupplier(IAdmin admin,
ORB orb,
POA poa,
org.jacorb.config.Configuration conf,
TaskProcessor taskProcessor,
OfferManager offerManager,
SubscriptionManager subscriptionManager,
ConsumerAdmin consumerAdmin) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPendingMessageQueue() |
protected void |
clientDisconnected() |
int |
compareTo(java.lang.Object o) |
void |
connectClient(Object client) |
void |
dispose() |
protected void |
enqueue(Message message)
put a copy of the Message in the queue of pending Messages.
|
protected Message[] |
getAllMessages() |
protected Message[] |
getAtLeastMessages(int min) |
protected abstract long |
getCost() |
java.lang.String |
getDiscardPolicy() |
int |
getErrorThreshold() |
int |
getMaxEventsPerConsumer() |
Message |
getMessageBlocking() |
MessageConsumer |
getMessageConsumer()
get the associated MessageConsumer or null.
|
protected Message |
getMessageNoBlock() |
protected EventQueueFactory |
getMessageQueueFactory() |
int |
getNumberOfDiscardedMessages() |
java.lang.String |
getOrderPolicy() |
int |
getPendingMessagesCount() |
java.util.List |
getSubsequentFilterStages() |
protected Message[] |
getUpToMessages(int max) |
boolean |
hasMessageConsumer()
check if this FilterStage has a MessageConsumer associcated.
|
boolean |
hasPendingData() |
boolean |
isRetryAllowed() |
protected void |
messageQueued()
this is an extension point.
|
ConsumerAdmin |
MyAdmin() |
EventType[] |
obtain_offered_types(ObtainInfoMode obtainInfoMode) |
void |
queueMessage(Message message)
Deliver a Message to the associated Consumer.
|
protected void |
removeListener() |
void |
setMaxEventsPerConsumer(int max) |
void |
subscription_change(EventType[] added,
EventType[] removed) |
activate, add_filter, checkDestroyStatus, checkIsConnected, checkIsNotConnected, checkStillConnected, configure, connectionResumed, connectionSuspended, deactivate, destroy, disconnectClient, get_all_filters, get_filter, get_qos, getClientIOR, getConnected, getErrorCounter, getFilters, getID, getInterFilterGroupOperator, getJMXNotificationTypes, getJMXObjectName, getLifetimeFilter, getMBeanName, getMBeanType, getORB, getPOA, getPriorityFilter, getStatus, getTaskProcessor, handleDisconnected, hasInterFilterGroupOperatorOR, hasLifetimeFilter, hasPriorityFilter, incErrorCounter, isDestroyed, isIDPublic, isSuspended, lifetime_filter, lifetime_filter, MyType, priority_filter, priority_filter, registerDisposable, remove_all_filters, remove_filter, resetErrorCounter, resume_connection, sendNotification, sendNotification, set_qos, setJMXCallback, suspend_connection, validate_event_qos, validate_qosclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyednewServantprotected AbstractProxySupplier(IAdmin admin, ORB orb, POA poa, org.jacorb.config.Configuration conf, TaskProcessor taskProcessor, OfferManager offerManager, SubscriptionManager subscriptionManager, ConsumerAdmin consumerAdmin) throws org.jacorb.config.ConfigurationException
org.jacorb.config.ConfigurationExceptionprotected EventQueueFactory getMessageQueueFactory()
public int getPendingMessagesCount()
public final java.lang.String getOrderPolicy()
public final java.lang.String getDiscardPolicy()
public final int getMaxEventsPerConsumer()
public void setMaxEventsPerConsumer(int max)
public int getNumberOfDiscardedMessages()
public boolean hasPendingData()
protected void enqueue(Message message)
message - the Message to queue.public Message getMessageBlocking() throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected Message getMessageNoBlock()
protected Message[] getAllMessages()
public void queueMessage(Message message)
MessageConsumerqueueMessage in interface MessageConsumerprotected void messageQueued()
protected Message[] getUpToMessages(int max)
max - maximum number of messagesprotected Message[] getAtLeastMessages(int min)
min - minimum number of messagespublic int getErrorThreshold()
public final void dispose()
dispose in class AbstractProxypublic final ConsumerAdmin MyAdmin()
public final void subscription_change(EventType[] added, EventType[] removed) throws InvalidEventType
subscription_change in interface NotifySubscribeOperationsInvalidEventTypepublic final EventType[] obtain_offered_types(ObtainInfoMode obtainInfoMode)
protected void removeListener()
removeListener in class AbstractProxyprotected final void clientDisconnected()
clientDisconnected in class AbstractProxypublic void connectClient(Object client)
connectClient in class AbstractProxypublic boolean isRetryAllowed()
protected abstract long getCost()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic final boolean hasMessageConsumer()
FilterStagehasMessageConsumer in interface FilterStagepublic final java.util.List getSubsequentFilterStages()
getSubsequentFilterStages in interface FilterStageSourcepublic final MessageConsumer getMessageConsumer()
FilterStagegetMessageConsumer in interface FilterStagepublic void clearPendingMessageQueue()