Andrew Brown | 070dc89 | 2015-01-21 09:55:12 -0800 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 10 | package 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 | */ |
| 18 | public interface OnEvent { |
Andrew Brown | a450fad | 2015-01-22 11:24:40 -0800 | [diff] [blame] | 19 | public void onEvent(NDNEvent event); |
Andrew Brown | 070dc89 | 2015-01-21 09:55:12 -0800 | [diff] [blame] | 20 | } |