Project

General

Profile

1
package eu.dnetlib.enabling.is.sn;
2

    
3
import javax.xml.ws.wsaddressing.W3CEndpointReference;
4

    
5
/**
6
 * Implementors of this interface decouple the notification producing and dispatching policies
7
 * with the actually on-wire sending of the notification message.
8
 * 
9
 * <p>
10
 * Notification invokers expose a fairly low level interface to notification dispatchers, so that 
11
 * dispatching policies can configure various aspects of the underlying transport.
12
 * </p>
13
 * 
14
 * @author marko
15
 *
16
 */
17
public interface NotificationInvoker {
18
	/**
19
	 * for now only timeout is exposed.
20
	 * 
21
	 * @param destination destination EPR
22
	 * @param message message
23
	 * @param timeout timeout in seconds
24
	 */
25
	void send(W3CEndpointReference destination, NotificationMessage message, int timeout);
26
}
(13-13/23)