001    // Copyright 2008 Waterken Inc. under the terms of the MIT X license
002    // found at http://www.opensource.org/licenses/mit-license.html
003    package org.ref_send.promise;
004    
005    /**
006     * A notification receiver.
007     * <p>
008     * This interface should be reused in any "fire-and-forget"-like pattern where
009     * the caller is simply sending a notification to the callee. For example, this
010     * interface should be used when implementing the Observer pattern.
011     * </p>
012     * @param <T> value type
013     */
014    public interface
015    Receiver<T> {
016    
017        /**
018         * Receives a notification.
019         * @param value any additional details about the notification
020         */
021        void apply(T value);
022    }