public enum ViewProxyFactory extends java.lang.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(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ViewFactory getInstance()
public Snapshot createSnapshot(long nativeHandle, Cleaner cleaner)
ViewFactory
createSnapshot
in interface ViewFactory
nativeHandle
- a handle to the native snapshot objectcleaner
- a cleaner to register the destructorpublic Fork createFork(long nativeHandle, Cleaner cleaner)
ViewFactory
createFork
in interface ViewFactory
nativeHandle
- a handle to the native fork objectcleaner
- a cleaner to register the destructorCopyright © 2018 Exonum. All rights reserved.