Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HaeinsaConfiguration #8

Open
eincs opened this issue Nov 13, 2013 · 0 comments
Open

Implement HaeinsaConfiguration #8

eincs opened this issue Nov 13, 2013 · 0 comments
Assignees
Milestone

Comments

@eincs
Copy link
Contributor

eincs commented Nov 13, 2013

Several constants are declared in HaeinsaConstants now, so that user can't modify those properties. To configure those properties, such as qualifier of lock column and lock timeout, we needs the class such as HaeinsaConfiguration.

See example of implementation:

// Configure properties of Haeinsa
// If user don't set value, Haeinsa will use default value
HaeinsaConfiguration conf = new HaeinsaConfiguration();
conf.setRowLockColumnQualifier("lock");
conf.setRowLockColumnFamily("!lock!");
conf.setRowLockTimeout(TimeUnit.SECONDS.toMillis(5));
conf.setRecoverMaxRetryCount(3);

// Pass HaeinsaConfiguration to HaeinsaTransactionManager
HaeinsaTransactionManager tm = new HaeinsaTransactionManager(tablePool, conf);
HaeinsaTableIface table = tablePool.getTable("test");
@eincs eincs added this to the v1.1.0 milestone May 1, 2014
@eincs eincs modified the milestones: v1.1.0, v1.0.3 May 10, 2014
@eincs eincs modified the milestones: v1.1.0, v1.0.4 Aug 11, 2014
@eincs eincs self-assigned this Jan 12, 2015
@eincs eincs modified the milestones: v1.1.0, v1.0.4 Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant