public interface FluoClient extends AutoCloseable
close()
must called when you are finished using the
client.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes client resources
|
SimpleConfiguration |
getAppConfiguration() |
MetricsReporter |
getMetricsReporter() |
LoaderExecutor |
newLoaderExecutor()
Creates a
LoaderExecutor for loading data into Fluo. |
Snapshot |
newSnapshot()
Creates a
Snapshot for reading data from Fluo. |
Transaction |
newTransaction()
Creates a
Transaction for reading and writing data to Fluo. |
LoaderExecutor newLoaderExecutor()
LoaderExecutor
for loading data into Fluo. Use within a try-with-resources
statement or call LoaderExecutor.close()
when you are finished using it.Snapshot newSnapshot()
Snapshot
for reading data from Fluo. Use within a try-with-resources
statement or call Snapshot.close()
when you are finished using it.Transaction newTransaction()
Transaction
for reading and writing data to Fluo. Unlike the transactions
provided by the Loader
and Observer
, users will
need to call Transaction.commit()
. Use within a try-with-resources statement or call
Transaction.close()
when you are finished.
Executing many transactions using this method may be less optimal than using a LoaderExecutor. When a transaction created via this method is committed and closed, the caller must wait for data to be persisted. Using a LoaderExecutor, multiple transactions commit processing may be batched w/o the need to wait for each transaction until the LoaderExecutor is closed.
SimpleConfiguration getAppConfiguration()
FluoAdmin.updateSharedConfig()
. Changes made to the returned Configuration will
not update Zookeeper.FluoConfiguration.getAppConfiguration()
,
ObserverProvider.Context.getAppConfiguration()
MetricsReporter getMetricsReporter()
MetricsReporter
that is used to report application metricsvoid close()
close
in interface AutoCloseable
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.