001    /* 
002     * Copyright 2008-2009 the original author or authors.
003     * The contents of this file are subject to the Mozilla Public License
004     * Version 1.1 (the "License"); you may not use this file except in
005     * compliance with the License. You may obtain a copy of the License at
006     * http://www.mozilla.org/MPL/
007     *
008     * Software distributed under the License is distributed on an "AS IS"
009     * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
010     * License for the specific language governing rights and limitations
011     * under the License.
012     */
013     
014    package com.mtgi.analytics.sql;
015    
016    import org.springframework.jdbc.datasource.ConnectionProxy;
017    
018    /**
019     * Extends the standard connection interface with the ability to suspend
020     * or resume event broadcasting.
021     */
022    public interface BehaviorTrackingConnectionProxy extends ConnectionProxy {
023            /** halt generating tracking events on this connection */
024            public void suspendTracking();
025            /** resume generating tracking events on this connection */
026            public void resumeTracking();
027    }