Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

List of all members.

Public Member Functions

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

Private Attributes

CorbaPublisher publisher
long lastAccessTime

Detailed Description

Objects from this class associate a time to the CorbaPublisher 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


Member Function Documentation

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

Release the publisher

See also:
CorbaPublisher

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

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

Publish a message on this publisher

Parameters:
message 


Member Data Documentation

long com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem::lastAccessTime [private]
 

The last time the publisher has been accessed

CorbaPublisher com::cosylab::acs::jms::ACSJMSTopicPublisher::PublisherPoolItem::publisher [private]
 

The publisher


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:10:10 2009 for ACS Java API by doxygen 1.3.8