|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 package org.mozilla.gecko.sync.repositories.delegates; |
|
6 |
|
7 import java.util.concurrent.ExecutorService; |
|
8 |
|
9 import org.mozilla.gecko.sync.repositories.RepositorySession; |
|
10 import org.mozilla.gecko.sync.repositories.RepositorySessionBundle; |
|
11 |
|
12 public interface RepositorySessionFinishDelegate { |
|
13 public void onFinishFailed(Exception ex); |
|
14 public void onFinishSucceeded(RepositorySession session, RepositorySessionBundle bundle); |
|
15 public RepositorySessionFinishDelegate deferredFinishDelegate(ExecutorService executor); |
|
16 } |