public class IndividualPeriodicalUpdater extends Object implements IIndividualPeriodicalUpdater
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
IndividualPeriodicalUpdater.UpdateableObject |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private Date |
date |
private Map<IndividualPeriodicalUpdater.UpdateableObject,org.joda.time.DateTime> |
registeredUpdatableObjects
Map storing the registered objects together with their next updatable time.
|
| Constructor and Description |
|---|
IndividualPeriodicalUpdater() |
| Modifier and Type | Method and Description |
|---|---|
(package private) Map<IndividualPeriodicalUpdater.UpdateableObject,org.joda.time.DateTime> |
getRegisteredUpdatableObjects() |
void |
handleClockTick(ClockTick event)
Method handling the external events of a clock tick.
|
void |
register(Object addresse,
Object target,
EUpdateIntervalRegistration period)
Register a new object with the updater.
|
void |
unregister(Object target)
Unregister a target from further notifications.
|
@Autowired private Date date
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
private Map<IndividualPeriodicalUpdater.UpdateableObject,org.joda.time.DateTime> registeredUpdatableObjects
public void register(Object addresse, Object target, EUpdateIntervalRegistration period)
IIndividualPeriodicalUpdaterperiod time after
the registration an update with the target as addressee is sent.register in interface IIndividualPeriodicalUpdateraddresse - the object which handels the updates.target - which registers an updaterperiod - update period.public void unregister(Object target)
IIndividualPeriodicalUpdaterunregister in interface IIndividualPeriodicalUpdatertarget - to be unregistered.public void handleClockTick(ClockTick event)
IIndividualPeriodicalUpdaterhandleClockTick in interface IIndividualPeriodicalUpdaterevent - object.Map<IndividualPeriodicalUpdater.UpdateableObject,org.joda.time.DateTime> getRegisteredUpdatableObjects()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.