View Javadoc
1   package org.djutils.demo.rmi;
2   
3   import java.rmi.Remote;
4   import java.rmi.RemoteException;
5   
6   /**
7    * ProducerInterface.java.
8    * <p>
9    * Copyright (c) 2019-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
10   * BSD-style license. See <a href="https://djutils.org/docs/current/djutils/licenses.html">DJUTILS License</a>.
11   * <p>
12   * @author <a href="https://www.tudelft.nl/averbraeck" target="_blank">Alexander Verbraeck</a>
13   */
14  public interface ProducerInterface extends Remote
15  {
16      /**
17       * Add a listener to the producer.
18       * @param listener the listener to add
19       * @throws RemoteException on network error
20       */
21      void addListener(ListenerInterface listener) throws RemoteException;
22  
23  }