Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f2b429
commit 168171c
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package snowblossom.lib.db; | ||
|
||
import com.google.protobuf.ByteString; | ||
import duckutil.Config; | ||
import snowblossom.lib.ChainHash; | ||
import snowblossom.lib.DaemonThreadFactory; | ||
import snowblossom.proto.Block; | ||
import snowblossom.proto.BlockSummary; | ||
import snowblossom.proto.Transaction; | ||
|
||
import java.nio.ByteBuffer; | ||
import java.util.concurrent.Executor; | ||
import java.util.concurrent.LinkedBlockingQueue; | ||
import java.util.concurrent.ThreadPoolExecutor; | ||
import java.util.concurrent.TimeUnit; | ||
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
|
||
public abstract class DBProvider | ||
{ | ||
private static final Logger logger = Logger.getLogger("snowblossom.db"); | ||
|
||
protected Config config; | ||
|
||
public DBProvider(Config config) | ||
{ | ||
} | ||
|
||
|
||
public void close() | ||
{ | ||
} | ||
|
||
protected abstract DBMap openMap(String name) throws Exception; | ||
protected abstract DBMapMutationSet openMutationMapSet(String name) throws Exception; | ||
|
||
} |