Skip to content

Commit 3b00a68

Browse files
author
tzihan
committed
Reconnect issue:Persist the connection meta info in SQLite database;Delete connection info from SQLite database when call disconnect.
Change-Id: I4d530abb144d33280cf44f186b0223b0dee93d47 Signed-off-by: tzihan <zhtang@cn.ibm.com>
1 parent 5a652d6 commit 3b00a68

5 files changed

Lines changed: 877 additions & 9 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2014 IBM Corp.
3+
*
4+
* All rights reserved. This program and the accompanying materials
5+
* are made available under the terms of the Eclipse Public License v1.0
6+
* and Eclipse Distribution License v1.0 which accompany this distribution.
7+
*
8+
* The Eclipse Public License is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
* and the Eclipse Distribution License is available at
11+
* http://www.eclipse.org/org/documents/edl-v10.php.
12+
*/
13+
14+
package org.eclipse.paho.android.service;
15+
16+
/**
17+
* Persistence Exception, defines an error with persisting a
18+
* {@link ModelConnectionPersistence} fails. Example operations are
19+
* {@link DatabaseConnectionPersistence#persistConnection(ModelConnectionPersistence)}
20+
* and
21+
* {@link DatabaseConnectionPersistence#restoreConnections(android.content.Context)}
22+
* ; these operations throw this exception to indicate unexpected results
23+
* occurred when performing actions on the database.
24+
*
25+
*/
26+
public class ConnectionPersistenceException extends Exception {
27+
28+
/**
29+
* Creates a persistence exception with the given error message
30+
*
31+
* @param message
32+
* The error message to display
33+
*/
34+
public ConnectionPersistenceException(String message) {
35+
super(message);
36+
}
37+
38+
/** Serialisation ID **/
39+
private static final long serialVersionUID = 5326458803268855071L;
40+
41+
}

0 commit comments

Comments
 (0)