blob: 62bdd5653edcd4b37020c46e7f5108e53b5c52a6 [file] [log] [blame]
Andrew Brown070dc892015-01-21 09:55:12 -08001/*
2 * File name: OnEvent.java
3 *
4 * Purpose: Interface for registering generic event handlers
5 *
6 * © Copyright Intel Corporation. All rights reserved.
7 * Intel Corporation, 2200 Mission College Boulevard,
8 * Santa Clara, CA 95052-8119, USA
9 */
10package com.intel.jndn.utils;
11
12/**
13 * Interface for registering generic event handlers. E.g.: observer.then((event)
14 * => doSomething(event.getFirst()));
15 *
16 * @author Andrew Brown <andrew.brown@intel.com>
17 */
18public interface OnEvent {
Andrew Browna450fad2015-01-22 11:24:40 -080019 public void onEvent(NDNEvent event);
Andrew Brown070dc892015-01-21 09:55:12 -080020}