public interface IHasLifecycle extends IClosable
| Modifier and Type | Interface and Description |
|---|---|
static class |
IHasLifecycle.LifecycleState
An enum that represents the four different lifecycle states an object may
be in.
|
static class |
IHasLifecycle.ObjectClosedException
Indicates that the object was closed when some method was called
requiring it to be open.
|
static class |
IHasLifecycle.ObjectOpenException
Indicates that the object was open when some method was called
requiring it to be closed.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOpen()
Returns
true if the dictionary is open, that is, ready to
accept queries; returns false otherwise |
boolean |
open()
This opens the object by performing any required initialization steps.
|
boolean open()
throws IOException
false, then subsequent calls to
isOpen() will return false.true if there were no errors in initialization;
false otherwise.IOException - if there was IO error while performing initializataionboolean isOpen()
true if the dictionary is open, that is, ready to
accept queries; returns false otherwisetrue if the object is open; false
otherwiseCopyright © 2018. All rights reserved.