public abstract class AbstractProxySupplier extends AbstractProxy implements MessageConsumer, NotifySubscribeOperations, AbstractProxySupplierMBean
JMXManageable.JMXCallbackconfig_, eventTypes_, logger_, offerManager_, qosSettings_, subscriptionManager_| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProxySupplier(IAdmin admin,
ORB orb,
POA poa,
Configuration conf,
TaskProcessor taskProcessor,
OfferManager offerManager,
SubscriptionManager subscriptionManager,
ConsumerAdmin consumerAdmin) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPendingMessageQueue() |
protected void |
clientDisconnected() |
int |
compareTo(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() |
String |
getDiscardPolicy() |
int |
getErrorThreshold() |
int |
getMaxEventsPerConsumer() |
Message |
getMessageBlocking() |
MessageConsumer |
getMessageConsumer()
get the associated MessageConsumer or null.
|
protected Message |
getMessageNoBlock() |
protected EventQueueFactory |
getMessageQueueFactory() |
int |
getNumberOfDiscardedMessages() |
String |
getOrderPolicy() |
int |
getPendingMessagesCount() |
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, isDestroyeddestroy, getClientIOR, getConnected, getErrorCounter, getInterFilterGroupOperator, getStatus, resetErrorCounternewServantprotected AbstractProxySupplier(IAdmin admin, ORB orb, POA poa, Configuration conf, TaskProcessor taskProcessor, OfferManager offerManager, SubscriptionManager subscriptionManager, ConsumerAdmin consumerAdmin) throws ConfigurationException
ConfigurationExceptionprotected EventQueueFactory getMessageQueueFactory()
public int getPendingMessagesCount()
getPendingMessagesCount in interface AbstractProxySupplierMBeanpublic final String getOrderPolicy()
getOrderPolicy in interface AbstractProxySupplierMBeanpublic final String getDiscardPolicy()
getDiscardPolicy in interface AbstractProxySupplierMBeanpublic final int getMaxEventsPerConsumer()
getMaxEventsPerConsumer in interface AbstractProxySupplierMBeanpublic void setMaxEventsPerConsumer(int max)
setMaxEventsPerConsumer in interface AbstractProxySupplierMBeanpublic int getNumberOfDiscardedMessages()
getNumberOfDiscardedMessages in interface AbstractProxySupplierMBeanpublic boolean hasPendingData()
protected void enqueue(Message message)
message - the Message to queue.public Message getMessageBlocking() throws InterruptedException
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 interface org.picocontainer.Disposabledispose 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(Object o)
compareTo in interface Comparablepublic final boolean hasMessageConsumer()
FilterStagehasMessageConsumer in interface FilterStagepublic final List getSubsequentFilterStages()
getSubsequentFilterStages in interface FilterStageSourcepublic final MessageConsumer getMessageConsumer()
FilterStagegetMessageConsumer in interface FilterStagepublic void clearPendingMessageQueue()
clearPendingMessageQueue in interface AbstractProxySupplierMBeanCopyright © 2015 JacORB. All rights reserved.