com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem Class Reference

Collaboration diagram for com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PublisherPoolItem (String name, ContainerServicesBase contSvcs) throws AcsJException
void sendMessage (Message message) throws JMSException
void close ()
long getLastAccessTime ()

Private Attributes

SimpleSupplier publisher
long lastAccessTime

Detailed Description

Objects from this class associate a time to the SimpleSupplier in order to remember when the NC has been accessed the last time. In this way it is possible to implement a policy to free not used NC.

Author:
acaproni

Constructor & Destructor Documentation

com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem::PublisherPoolItem ( String  name,
ContainerServicesBase  contSvcs 
) throws AcsJException [inline]

Constructor

Create a PoolMenuItem building a new CorbaPublisher and updating the access time

Parameters:
name The name of the topic (i.e. of the NC)
Exceptions:
AcsJException In case of error building the CorbaPublisher

References lastAccessTime, and publisher.


Member Function Documentation

void com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem::close (  )  [inline]
long com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem::getLastAccessTime (  )  [inline]

Return the last access time for this item.

The value returned is the number of milliseconds as returned by System.currentTimeMillis()

Returns:
The instant (msec) when this item has been accessed the last time

References lastAccessTime.

void com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem::sendMessage ( Message  message  )  throws JMSException [inline]

Member Data Documentation

The last time the publisher has been accessed

Referenced by getLastAccessTime(), PublisherPoolItem(), and sendMessage().

The publisher

Referenced by close(), PublisherPoolItem(), and sendMessage().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2