public abstract class PollingTopic<E> extends AbstractTopic<E> implements AlarmListener
Modifier | Constructor and Description |
---|---|
protected |
PollingTopic() |
Modifier and Type | Method and Description |
---|---|
void |
handleAlarm(Alarm alarm)
Handles a callback from an alarm.
|
protected boolean |
isPolling() |
protected void |
run() |
void |
setPollPeriod(Period period) |
void |
startPoll() |
void |
stopPoll() |
closeSubscriber, createSubscriber, drainTo, drainTo, init, iterator, offer, offer, peek, poll, poll, postConstruct, put, receive, remainingCapacity, setTopicName, size, take
acknowledge, close, generateMessageID, generateMessageID, getJMSDestination, getName, getQueueName, getTopicName, getUrl, hasMessage, rollback, send, setName, setSerializationHandle, toString
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTopicName, toString
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()