V
- the graph vertex typeE
- the graph edge typepublic static class AsSynchronizedGraph.Builder<V,E> extends Object
AsSynchronizedGraph
.Constructor and Description |
---|
Builder()
Construct a new Builder with non-fair mode, cache disabled, and copyless mode disabled.
|
Builder(AsSynchronizedGraph<V,E> graph)
Construct a new Builder matching the settings of an existing graph.
|
Modifier and Type | Method and Description |
---|---|
AsSynchronizedGraph<V,E> |
build(Graph<V,E> graph)
Build the AsSynchronizedGraph.
|
AsSynchronizedGraph.Builder<V,E> |
cacheDisable()
Request a synchronized graph without caching.
|
AsSynchronizedGraph.Builder<V,E> |
cacheEnable()
Request a synchronized graph with caching.
|
AsSynchronizedGraph.Builder<V,E> |
clearCopyless()
Request a synchronized graph which returns collection copies.
|
boolean |
isCacheEnable()
Return whether a cache will be used for the synchronized graph being built.
|
boolean |
isCopyless()
Return whether copyless mode will be used for the synchronized graph being built.
|
boolean |
isFair()
Return whether fair mode will be used for the synchronized graph being built.
|
AsSynchronizedGraph.Builder<V,E> |
setCopyless()
Request a synchronized graph which does not return collection copies.
|
AsSynchronizedGraph.Builder<V,E> |
setFair()
Request a synchronized graph with fair mode.
|
AsSynchronizedGraph.Builder<V,E> |
setNonfair()
Request a synchronized graph with non-fair mode.
|
public Builder()
public Builder(AsSynchronizedGraph<V,E> graph)
graph
- the graph on which to base the builderpublic AsSynchronizedGraph.Builder<V,E> cacheDisable()
public AsSynchronizedGraph.Builder<V,E> cacheEnable()
public boolean isCacheEnable()
public AsSynchronizedGraph.Builder<V,E> setCopyless()
public AsSynchronizedGraph.Builder<V,E> clearCopyless()
public boolean isCopyless()
public AsSynchronizedGraph.Builder<V,E> setFair()
public AsSynchronizedGraph.Builder<V,E> setNonfair()
public boolean isFair()
Copyright © 2019. All rights reserved.