summaryrefslogtreecommitdiff
path: root/same/src/main/java/com/orbekk/paxos/PaxosService.java
blob: a6f6b08747507bdc2c8ef4ef37e9e6256262b45d (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; 
}