class WbEditingAction {

	public double getCurrentLag() throws IOException, MediaWikiApiErrorException {
		Map<String,String> parameters = new HashMap<>();
		parameters.put("action", "query");
		parameters.put("maxlag", "-1");
		try {
			this.connection.sendJsonRequest("POST", parameters);
		} catch (MaxlagErrorException e) {
			return e.getLag();
		}
		throw new IllegalStateException("MediaWiki did not return any maxlag value");
	}

	public  WbEditingAction(ApiConnection connection, String siteIri);

}