public static interface Service.ServiceFactory<I,R> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
default void |
close()
Service factories can implement cleanup/shutdown procedures here.
|
Service<I,R> |
createService(boolean isStart,
Map params)
Create a Service call instance.
|
default Map |
describeParams()
Return a description of any service call parameters.
|
String |
getName()
Get the name of this service.
|
default Set<TraverserRequirement> |
getRequirements(Service.Type type)
Return any
TraverserRequirement s necessary for this service call for the supplied execution
Service.Type . |
default Map<Service.Type,Set<TraverserRequirement>> |
getRequirementsByType()
Return any
TraverserRequirement s necessary for this service call for each execution Service.Type
it supports. |
Set<Service.Type> |
getSupportedTypes()
Get the execution modes that it supports.
|
String getName()
Set<Service.Type> getSupportedTypes()
default Map describeParams()
default Map<Service.Type,Set<TraverserRequirement>> getRequirementsByType()
TraverserRequirement
s necessary for this service call for each execution Service.Type
it supports.default Set<TraverserRequirement> getRequirements(Service.Type type)
TraverserRequirement
s necessary for this service call for the supplied execution
Service.Type
.Service<I,R> createService(boolean isStart, Map params)
isStart
- true if the call is being used to start a traversalparams
- the static params provided to service call (if any)default void close()
close
in interface AutoCloseable
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.