blob: 96a84d29bb883b77deb5e85202f18a4ddd03f00d [file] [log] [blame]
Andrew Brown6e002952016-09-12 20:36:45 -07001/*
2 * jndn-utils
3 * Copyright (c) 2016, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU Lesser General Public License,
7 * version 3, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12 * more details.
13 */
14
15package com.intel.jndn.utils;
16
17/**
18 * Generic callback API for receiving some signal T when an event is fired.
19 *
20 * @author Andrew Brown, andrew.brown@intel.com
21 */
22@FunctionalInterface
23public interface On<T> {
24 /**
25 * @param event the event object describing the occurrence
26 */
27 void on(T event);
28}