Codota Logo
Session.close
Code IndexAdd Codota to your IDE (free)

How to use
close
method
in
org.apache.stanbol.ontologymanager.servicesapi.session.Session

Best Java code snippets using org.apache.stanbol.ontologymanager.servicesapi.session.Session.close (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

@Override
public synchronized void destroySession(String sessionID) {
  try {
    Session ses = sessionsByID.get(sessionID);
    if (ses == null) log.warn(
      "Tried to destroy nonexisting session {} . Could it have been previously destroyed?",
      sessionID);
    else {
      ses.close();
      if (ses instanceof SessionImpl) ((SessionImpl) ses).state = State.ZOMBIE;
      // Make session no longer referenceable
      removeSession(ses);
      fireSessionDestroyed(ses);
    }
  } catch (NonReferenceableSessionException e) {
    log.warn("Tried to kick a dead horse on session \"{}\" which was already in a zombie state.",
      sessionID);
  }
}
origin: apache/stanbol

@Override
public synchronized void destroySession(String sessionID) {
  try {
    Session ses = sessionsByID.get(sessionID);
    if (ses == null) log.warn(
      "Tried to destroy nonexisting session {} . Could it have been previously destroyed?",
      sessionID);
    else {
      ses.close();
      if (ses instanceof SessionImpl) ((SessionImpl) ses).state = State.ZOMBIE;
      // Make session no longer referenceable
      removeSession(ses);
      fireSessionDestroyed(ses);
    }
  } catch (NonReferenceableSessionException e) {
    log.warn("Tried to kick a dead horse on session \"{}\" which was already in a zombie state.",
      sessionID);
  }
}
org.apache.stanbol.ontologymanager.servicesapi.sessionSessionclose

Javadoc

Closes this Session irreversibly. Most likely includes setting the state to ZOMBIE.

Popular methods of Session

  • addOntology
  • export
  • getID
  • attachScope
    Instructs the session to reference the supplied ontology scope. This way, whenever session data are
  • detachScope
    Instructs the session to no longer reference the supplied ontology scope. If a scope with the suppli
  • getAttachedScopes
    Gets the identifiers of the scopes currently attached to this session.
  • listManagedOntologies
  • addOntologyCollectorListener
  • addSessionListener
  • getOntology
  • getSessionState
    Returns the current state of this KReS session.
  • hasOntology
  • getSessionState,
  • hasOntology,
  • removeOntology,
  • setActive,
  • setConnectivityPolicy

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • orElseThrow (Optional)
  • onCreateOptionsMenu (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now