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, takeacknowledge, close, generateMessageID, generateMessageID, getJMSDestination, getName, getQueueName, getTopicName, getUrl, hasMessage, rollback, send, setName, setSerializationHandle, toStringcontains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTopicName, toStringpublic void setPollPeriod(Period period)
protected boolean isPolling()
public void startPoll()
public void stopPoll()
public void handleAlarm(Alarm alarm)
AlarmListenerhandleAlarm in interface AlarmListenerprotected void run()