public abstract class AbstractNotifyingSail extends AbstractSail implements NotifyingSail
NotifyingSail
implementation that takes care of common sail tasks, including proper closing of active
connections and a grace period for active connections during shutdown of the store.connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock
Constructor and Description |
---|
AbstractNotifyingSail() |
Modifier and Type | Method and Description |
---|---|
void |
addSailChangedListener(SailChangedListener listener)
Adds the specified SailChangedListener to receive events when the data in this Sail object changes.
|
NotifyingSailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
protected abstract NotifyingSailConnection |
getConnectionInternal()
Returns a store-specific SailConnection object.
|
void |
notifySailChanged(SailChangedEvent event)
Notifies all registered SailChangedListener's of changes to the contents of this Sail.
|
void |
removeSailChangedListener(SailChangedListener listener)
Removes the specified SailChangedListener so that it no longer receives events from this Sail object.
|
addSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultIsolationLevel, getIterationCacheSyncThreshold, getSupportedIsolationLevels, init, initialize, initializeInternal, isInitialized, isTrackResultSize, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, setTrackResultSize, shutDown, shutDownInternal, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, init, initialize, isWritable, setDataDir, shutDown
public NotifyingSailConnection getConnection() throws SailException
Sail
getConnection
in interface NotifyingSail
getConnection
in interface Sail
getConnection
in class AbstractSail
SailException
- If no transaction could be started, for example because the Sail is not writable.protected abstract NotifyingSailConnection getConnectionInternal() throws SailException
AbstractSail
getConnectionInternal
in class AbstractSail
SailException
public void addSailChangedListener(SailChangedListener listener)
NotifyingSail
addSailChangedListener
in interface NotifyingSail
public void removeSailChangedListener(SailChangedListener listener)
NotifyingSail
removeSailChangedListener
in interface NotifyingSail
public void notifySailChanged(SailChangedEvent event)
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.