summaryrefslogtreecommitdiff
path: root/jsonrpc/src/main/java/com/orbekk/same/SameService.java
blob: 0db96981a9efeede007f3297def909101fc22bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.orbekk.same;

import java.util.Map;

public interface SameService {
    /**
     * A notification that 'networkName' exists.
     *
     * This is called by any participant of a network after a broadcast
     * has been performed.
     */
    void notifyNetwork(String networkName);

    /**
     * A request from the callee to participate in 'networkName'.
     */
    void participateNetwork(String networkName, String clientId,
            String url);

    /**
     * Notification of participation in network.
     */
    void notifyParticipation(String networkName,
            Map<String, String> participants);
}