T - public abstract class ConcurrentInitialize<T>
extends java.lang.Object
lock that oeprates a state machine.| Constructor and Description |
|---|
ConcurrentInitialize() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
create()
Override to create the actual object
|
T |
get()
Get the value or wait until it is created.
|
public T get() throws java.lang.Exception
java.lang.Exceptionpublic abstract T create() throws java.lang.Exception
java.lang.Exception - if the creation failed this is the exception that was
thrown