public enum ViewProxyFactory extends Enum<ViewProxyFactory> implements ViewFactory
This class is thread-safe.
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Fork |
createFork(long nativeHandle,
Cleaner cleaner)
Creates a new owning fork.
|
Snapshot |
createSnapshot(long nativeHandle,
Cleaner cleaner)
Creates a new owning snapshot.
|
static ViewFactory |
getInstance()
Returns an instance of this factory.
|
static ViewProxyFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ViewProxyFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ViewProxyFactory INSTANCE
public static ViewProxyFactory[] values()
for (ViewProxyFactory c : ViewProxyFactory.values()) System.out.println(c);
public static ViewProxyFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ViewFactory getInstance()
public Snapshot createSnapshot(long nativeHandle, Cleaner cleaner)
ViewFactorycreateSnapshot in interface ViewFactorynativeHandle - a handle to the native snapshot objectcleaner - a cleaner to register the destructorpublic Fork createFork(long nativeHandle, Cleaner cleaner)
ViewFactorycreateFork in interface ViewFactorynativeHandle - a handle to the native fork objectcleaner - a cleaner to register the destructorCopyright © 2019 Exonum. All rights reserved.