summaryrefslogtreecommitdiff
path: root/same/src/main/java/com/orbekk/paxos/PaxosService.java
blob: 8de02da8ea6bb7e5ae62566b82bf7fbcddea3bc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package com.orbekk.paxos;

public interface PaxosService {
    
    /**
     * @return N == proposalNumber if a promise is made.
     *      -M if another promise already was made, where M is the promise
     *      highest proposal number.
     */
    int propose(String clientUrl, int proposalNumber) throws Exception;
    int acceptRequest(String clientUrl, int proposalNumber) throws Exception; 
}