Class AbstractNotifyingSailConnection

java.lang.Object
org.eclipse.rdf4j.sail.helpers.AbstractSailConnection
org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSailConnection
All Implemented Interfaces:
AutoCloseable, NotifyingSailConnection, SailConnection
Direct Known Subclasses:
SailSourceConnection

public abstract class AbstractNotifyingSailConnection extends AbstractSailConnection implements NotifyingSailConnection
Abstract Class offering base functionality for SailConnection implementations.
Author:
Arjohn Kampman, Jeen Broekstra
  • Constructor Details

    • AbstractNotifyingSailConnection

      public AbstractNotifyingSailConnection(AbstractSail sailBase)
  • Method Details

    • addConnectionListener

      public void addConnectionListener(SailConnectionListener listener)
      Description copied from interface: NotifyingSailConnection
      Registers a SailConnection listener with this SailConnection. The listener should be notified of any statements that are added or removed as part of this SailConnection.
      Specified by:
      addConnectionListener in interface NotifyingSailConnection
      Parameters:
      listener - A SailConnectionListener.
    • removeConnectionListener

      public void removeConnectionListener(SailConnectionListener listener)
      Description copied from interface: NotifyingSailConnection
      Deregisters a SailConnection listener with this SailConnection.
      Specified by:
      removeConnectionListener in interface NotifyingSailConnection
      Parameters:
      listener - A SailConnectionListener.
    • hasConnectionListeners

      protected boolean hasConnectionListeners()
    • notifyStatementAdded

      protected void notifyStatementAdded(Statement st)
    • notifyStatementRemoved

      protected void notifyStatementRemoved(Statement st)