Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 682 Bytes

chapter2_5_1.md

File metadata and controls

17 lines (12 loc) · 682 Bytes

Column Family Manager Factory

The factory classes have the duty to create the column family manager.

  • ColumnFamilyManagerAsyncFactory
  • ColumnFamilyManagerFactory

The ColumnFamilyManagerAsyncFactory and ColumnFamilyManagerFactory creates the manager synchronously and asynchronously respectively.

ColumnFamilyManagerFactory factory = //instance
ColumnFamilyManagerAsyncFactory asyncFactory = //instance
ColumnFamilyManager manager = factory.get("database");
ColumnFamilyManagerAsync managerAsync = asyncFactory.getAsync("database");

The factories were separated intentionally, as not all databases support synchronous and asynchronous operations.