@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class ProcedurePrepareLatch extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ProcedurePrepareLatch.CompatibilityLatch |
private static class |
ProcedurePrepareLatch.NoopLatch |
Modifier and Type | Field and Description |
---|---|
private static ProcedurePrepareLatch.NoopLatch |
noopLatch |
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.
|
private static boolean |
hasProcedureSupport(int major,
int minor) |
static void |
releaseLatch(ProcedurePrepareLatch latch,
Procedure proc) |
private static final ProcedurePrepareLatch.NoopLatch noopLatch
public ProcedurePrepareLatch()
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()
private static boolean hasProcedureSupport(int major, int minor)
public abstract void await() throws IOException
IOException
public static void releaseLatch(ProcedurePrepareLatch latch, Procedure proc)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.