Tabnine Logo
LockingManager.refresh
Code IndexAdd Tabnine to your IDE (free)

How to use
refresh
method
in
org.geotools.data.LockingManager

Best Java code snippets using org.geotools.data.LockingManager.refresh (Showing top 6 results out of 315)

origin: geotools/geotools

public boolean refresh(String authID, Transaction transaction) throws IOException {
  List<DataStore> stores = cache.getDataStores();
  for (DataStore store : stores) {
    if ((store.getLockingManager() != null) && store.getLockingManager().exists(authID)) {
      return store.getLockingManager().refresh(authID, transaction);
    }
  }
  return false;
}
origin: org.geotools/gt-directory

/**
 * @see org.geotools.data.LockingManager#refresh(java.lang.String,
 *      org.geotools.data.Transaction)
 */
public boolean refresh(String authID, Transaction transaction)
  throws IOException {
  Iterator i = dataStores.values().iterator();
  while (i.hasNext()) {
    AbstractFileDataStore afds = (AbstractFileDataStore) i.next();
    if ((afds.getLockingManager() != null)
        && afds.getLockingManager().exists(authID)) {
      return afds.getLockingManager().refresh(authID, transaction);
    }
  }
  return false;
}
origin: org.geotools/gt-directory

public boolean refresh(String authID, Transaction transaction)
  throws IOException {
  List<DataStore> stores = cache.getDataStores();
  for (DataStore store : stores) {
    if ((store.getLockingManager() != null)
        && store.getLockingManager().exists(authID)) {
      return store.getLockingManager().refresh(authID, transaction);
    }
  }
  return false;
}
origin: org.geotools/gt-data

public boolean refresh(String authID, Transaction transaction)
  throws IOException {
  List<DataStore> stores = cache.getDataStores();
  for (DataStore store : stores) {
    if ((store.getLockingManager() != null)
        && store.getLockingManager().exists(authID)) {
      return store.getLockingManager().refresh(authID, transaction);
    }
  }
  return false;
}
origin: org.geoserver/gs-wfs

t.addAuthorization(lockId);
if (lockingManager.refresh(lockId, t)) {
  refresh = true;
origin: org.geoserver/gs-wfs

  t.addAuthorization(fLock.getAuthorization());
  DataStore dataStore = (DataStore) source.getDataStore();
  dataStore.getLockingManager().refresh(fLock.getAuthorization(), t);
} finally {
  t.commit();
org.geotools.dataLockingManagerrefresh

Javadoc

Refresh locks held by the authorization lockID.

All features locked with the provied lockID will be locked for additional time (the origional duration requested).

(remember that the lock may have expired)

Popular methods of LockingManager

  • lockFeatureID
    FeatureID based locking.
  • unLockFeatureID
    FeatureID based unlocking.
  • exists
    Check if any locks exist held by the authorization lockID. (remember that the lock may have expired)
  • release
    Release locks held by the authorization lockID. (remember that the lock may have expired)

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now