public abstract class ShardLock
extends java.lang.Object
implements java.io.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.
|
java.lang.String |
toString() |
public ShardLock(ShardId id)
public final ShardId getShardId()
public final void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
protected abstract void closeInternal()
public final boolean isOpen()
public java.lang.String toString()
toString
in class java.lang.Object