public abstract class ShardLock extends Object implements Closeable
NodeEnvironment
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract void |
closeInternal() |
ShardId |
getShardId()
Returns the locks shards Id.
|
boolean |
isOpen()
Returns true if this lock is still open ie.
|
String |
toString() |
public ShardLock(ShardId id)
public final ShardId getShardId()
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
protected abstract void closeInternal()
public final boolean isOpen()
Copyright © 2009–2016. All rights reserved.