streaming: Convert StreamEventHandler.java to C++

This commit is contained in:
Asias He
2015-06-19 14:26:56 +08:00
parent 6707c9f8af
commit 04fa228091
2 changed files with 14 additions and 6 deletions

View File

@@ -14,18 +14,25 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Modified by Cloudius Systems.
* Copyright 2015 Cloudius Systems.
*/
package org.apache.cassandra.streaming;
import com.google.common.util.concurrent.FutureCallback;
#pragma once
public interface StreamEventHandler extends FutureCallback<StreamState>
{
#include "streaming/stream_event.hh"
namespace streaming {
class stream_event_handler /* extends FutureCallback<StreamState> */ {
/**
* Callback for various streaming events.
*
* @see StreamEvent.Type
* @param event Stream event.
*/
void handleStreamEvent(StreamEvent event);
}
virtual void handle_stream_event(stream_event event) = 0;
};
} // namespace streaming

View File

@@ -18,3 +18,4 @@
#include "streaming/stream_session.hh"
#include "streaming/stream_task.hh"
#include "streaming/stream_event.hh"
#include "streaming/stream_event_handler.hh"