@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class ProcedurePrepareLatch extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ProcedurePrepareLatch.CompatibilityLatch |
Constructor and Description |
---|
ProcedurePrepareLatch() |
Modifier and Type | Method and Description |
---|---|
abstract void |
await() |
protected abstract void |
countDown(Procedure proc) |
static ProcedurePrepareLatch |
createBlockingLatch()
Creates a latch which blocks.
|
static ProcedurePrepareLatch |
createLatch()
Create a latch if the client does not have async proc support.
|
static ProcedurePrepareLatch |
createLatch(int major,
int minor)
Create a latch if the client does not have async proc support
|
static ProcedurePrepareLatch |
getNoopLatch()
Returns the singleton latch which does nothing.
|
static void |
releaseLatch(ProcedurePrepareLatch latch,
Procedure proc) |
public static ProcedurePrepareLatch createLatch()
public static ProcedurePrepareLatch createLatch(int major, int minor)
major
- major version with async proc supportminor
- minor version with async proc supportpublic static ProcedurePrepareLatch createBlockingLatch()
public static ProcedurePrepareLatch getNoopLatch()
protected abstract void countDown(Procedure proc)
public abstract void await() throws IOException
IOException
public static void releaseLatch(ProcedurePrepareLatch latch, Procedure proc)
Copyright © 2007–2019 Cloudera. All rights reserved.