Skip to content

rleijon/jumbo-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jumbo-java

Java client for the jumbo database, to connect via TCP to a standalone Jumbo server.

Example basic usage (for a Jumbo located on localhost of course):

JumboTcpClient client = JumboTcpClient.connect(Inet4Address.getLocalHost(), 8080);
JumboTcp sender = client.blockUntilConnected();
int table = 99;
sender.put(table, "Hello".getBytes(), "World!".getBytes());
byte[] ret = sender.get(table, "Hello".getBytes());

Using the type registry:

JumboTcpClient client = JumboTcpClient.connect(Inet4Address.getLocalHost(), 8080);
JumboTcp sender = client.blockUntilConnected();
int table = 99;
Codec<TradeKey, Trade> codec = getTradeCodec();
CodecRegistry.registerCodec(table, codec);
TradeKey key = getTradeKey();
Trade value = getTrade();
sender.put(table, key, value);
Trade ret = (Trade) sender.get(table, key);

About

Java client for the jumbo database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages