Examples of SailConnectionListener


Examples of org.openrdf.sail.SailConnectionListener

        private final Collection<Statement> buffer = new LinkedList<Statement>();
        private final TweetStore store;

        public TweetGenerator() throws TweetStoreException, SailException {

            SailConnectionListener listener = new SailConnectionListener() {
                @Override
                public void statementAdded(Statement statement) {
                    buffer.add(statement);
                }
View Full Code Here

Examples of org.openrdf.sail.SailConnectionListener

        try {
            this.sailConnection = tweetStore.getSail().getConnection();
            this.sailConnection.begin();

            if (null != listenerFactory && sailConnection instanceof NotifyingSailConnection) {
                SailConnectionListener l = listenerFactory.create();
                ((NotifyingSailConnection) sailConnection).addConnectionListener(l);
            }
        } catch (SailException e) {
            throw new TweetStoreException(e);
        }
View Full Code Here

Examples of org.openrdf.sail.SailConnectionListener

// FIXME: this doesn't give the LexiconUpdater any information about namespaces
// FIXME: removed because SailConnectionListener is no longer supported by arbitrary Sails... you would need to wrap
//        the Sail in a notifying Sail... but this still wouldn't give you namespace updates.
            if (null != listenerSink && sailConnection instanceof NotifyingSailConnection) {
                SailConnectionListener listener
                        = new SailConnectionListenerAdapter(listenerSink);

                ((NotifyingSailConnection) sailConnection).addConnectionListener(listener);
            }
        } catch (Throwable t) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.