KEY - The registry key type.ENTRY - The registry entry type.public class SynchronizableRegistryImpl<KEY,ENTRY extends Identifiable<KEY>> extends RegistryImpl<KEY,ENTRY> implements SynchronizableRegistry<KEY,ENTRY>
AbstractRegistry implementation providing the timestamp of the last synchronization by implementing the SynchronizableRegistry interface.Shutdownable.ShutdownDeamon| Modifier and Type | Field and Description |
|---|---|
static long |
NEVER_SYNCHRONIZED
Never synchronized constant.
|
consistent, logger, pluginPool, sandboxlatestValueHash, observers, unchangedValueFilterTYPE_FIELD_NAME| Constructor and Description |
|---|
SynchronizableRegistryImpl()
Creates a new SynchronizableRegistry with a default
HashMap as internal map. |
SynchronizableRegistryImpl(HashMap<KEY,ENTRY> entryMap)
Creates a new SynchronizableRegistry where the given
entryMap is used as internal map. |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastSynchronizationTimestamp()
Method returns the timestamp of the last synchronization.
|
boolean |
isInitiallySynchronized()
Method returns the initial synchronization state.
|
void |
notifySynchronization()
Informs the controller registry that the synchronization with the external controller configuration registry was done.
|
logaddDependencyObserver, afterConsistencyCheck, checkConsistency, checkWriteAccess, clear, contains, contains, finishTransaction, get, getEntries, getEntryMap, getEntryMapClass, getName, info, isBusy, isBusyByCurrentThread, isConsistent, isDependingOnConsistentRegistries, isEmpty, isReadOnly, isReady, isSandbox, isWriteLockedByCurrentThread, load, lock, log, log, notifyObservers, recursiveTryLockRegistry, register, registerConsistencyHandler, registerDependency, registerPlugin, remove, remove, removeAllDependencies, removeConsistencyHandler, removeDependency, removeDependencyObserver, replaceInternalMap, replaceInternalMap, setName, setupSandbox, shutdown, size, superRemove, toString, tryLockRegistry, unlock, unlockRegistry, update, verifyID, verifyIDapplyValueUpdate, getValue, getValueFuture, isValueAvailable, waitForValueaddObserver, isNotificationInProgess, notifyObservers, notifyObservers, removeObserver, setExecutorService, setHashGenerator, waitUntilNotificationIsFinishedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDependencyObserver, clear, contains, contains, get, get, getEntries, getEntryMap, getName, isConsistent, isEmpty, isEmtpy, isReadOnly, isReady, isSandbox, recursiveTryLockRegistry, register, remove, remove, removeDependencyObserver, size, tryLockRegistry, unlockRegistry, updatecheckWriteAccess, isWritableaddObserver, getLatestValue, getValue, getValueFuture, isValueAvailable, removeObserver, waitForValue, waitForValueregisterShutdownHook, registerShutdownHook, shutdownpublic static final long NEVER_SYNCHRONIZED
public SynchronizableRegistryImpl()
throws InstantiationException
HashMap as internal map.InstantiationException - is thrown if registry could not be instantiated.public SynchronizableRegistryImpl(HashMap<KEY,ENTRY> entryMap) throws InstantiationException
entryMap is used as internal map.entryMap - a map instance to be used as internal map.InstantiationException - is thrown if registry could not be instantiated.public void notifySynchronization()
notifySynchronization in interface SynchronizableRegistry<KEY,ENTRY extends Identifiable<KEY>>public boolean isInitiallySynchronized()
isInitiallySynchronized in interface SynchronizableRegistry<KEY,ENTRY extends Identifiable<KEY>>public long getLastSynchronizationTimestamp()
throws NotAvailableException
getLastSynchronizationTimestamp in interface SynchronizableRegistry<KEY,ENTRY extends Identifiable<KEY>>NotAvailableException - is thrown in case the synchronization was never performed.Copyright © 2015–2018 openbase.org. All rights reserved.