|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractQueue<E>
com.caucho.jms.queue.AbstractDestination<E>
com.caucho.jms.queue.AbstractTopic<E>
com.caucho.jms.queue.PollingTopic<E>
public abstract class PollingTopic<E>
Implements an topic which polls the data periodically.
Constructor Summary | |
---|---|
protected |
PollingTopic()
|
Method Summary | |
---|---|
void |
handleAlarm(Alarm alarm)
Handles a callback from an alarm. |
protected boolean |
isPolling()
|
protected void |
run()
|
void |
setPollPeriod(Period period)
|
void |
startPoll()
|
void |
stopPoll()
|
Methods inherited from class com.caucho.jms.queue.AbstractTopic |
---|
closeSubscriber, createSubscriber, drainTo, drainTo, init, iterator, offer, offer, peek, poll, poll, postConstruct, put, receive, remainingCapacity, setTopicName, size, take |
Methods inherited from class com.caucho.jms.queue.AbstractDestination |
---|
acknowledge, close, generateMessageID, generateMessageID, getJMSDestination, getName, getQueueName, getTopicName, getUrl, hasMessage, rollback, send, setName, setSerializationHandle, toString |
Methods inherited from class java.util.AbstractQueue |
---|
add, addAll, clear, element, remove |
Methods inherited from class java.util.AbstractCollection |
---|
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.Topic |
---|
getTopicName, toString |
Methods inherited from interface java.util.concurrent.BlockingQueue |
---|
add, contains, remove |
Methods inherited from interface java.util.Queue |
---|
element, remove |
Methods inherited from interface java.util.Collection |
---|
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
protected PollingTopic()
Method Detail |
---|
public void setPollPeriod(Period period)
protected boolean isPolling()
public void startPoll()
public void stopPoll()
public void handleAlarm(Alarm alarm)
AlarmListener
handleAlarm
in interface AlarmListener
protected void run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |