Interface ServiceScheme
-
- All Superinterfaces:
Scheme
- All Known Subinterfaces:
CachingScheme,NamedTopicScheme,ObservableCachingScheme,TopicScheme<C,S>
- All Known Implementing Classes:
AbstractCachingScheme,AbstractCompositeScheme,AbstractJournalScheme,AbstractLocalCachingScheme,AbstractServiceScheme,BackingMapScheme,BaseGrpcCacheScheme,BaseGrpcScheme,CaffeineScheme,ClassScheme,ContinuousQueryCacheScheme,CustomScheme,DistributedScheme,ExternalScheme,FlashJournalScheme,InvocationScheme,LocalScheme,NearScheme,OptimisticScheme,OverflowScheme,PagedExternalScheme,PagedTopicScheme,PagedTopicStorageScheme,ProxyScheme,RamJournalScheme,ReadWriteBackingMapScheme,RemoteCacheScheme,RemoteInvocationScheme,ReplicatedScheme,TransactionalScheme,ViewScheme,WrapperCachingScheme
public interface ServiceScheme extends Scheme
This interface exposes service related scheme information. Other schemes, such asCachingScheme, extend this class to add support for caches and maps.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.12.30
-
-
Field Summary
Fields Modifier and Type Field Description static StringDELIM_APPLICATION_SCOPEDelimiter for the Application Scope in thescoped service namestatic StringDELIM_DOMAIN_PARTITIONDelimiter for the Domain Partition name in thescoped service name
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description List<NamedEventInterceptorBuilder>getEventInterceptorBuilders()StringgetScopedServiceName()Return the service name with any scoping applied.static StringgetScopedServiceName(String sScopeName, String sServiceName)Return a scoped service namestatic StringgetScopePrefix(String sScopeName, com.tangosol.application.ContainerContext context)Return a scope name prefixed with any tenancy name.ServiceBuildergetServiceBuilder()Return theServiceBuilderthat is needed to build a service.StringgetServiceName()Return the service name.StringgetServiceType()Return the service type.booleanisAutoStart()Return true if the service has auto-start enabled.-
Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymous
-
-
-
-
Field Detail
-
DELIM_DOMAIN_PARTITION
static final String DELIM_DOMAIN_PARTITION
Delimiter for the Domain Partition name in thescoped service name- See Also:
- Constant Field Values
-
DELIM_APPLICATION_SCOPE
static final String DELIM_APPLICATION_SCOPE
Delimiter for the Application Scope in thescoped service name- See Also:
- Constant Field Values
-
-
Method Detail
-
isAutoStart
boolean isAutoStart()
Return true if the service has auto-start enabled.- Returns:
- the auto-start flag.
-
getServiceName
String getServiceName()
Return the service name.- Returns:
- the service name
-
getScopedServiceName
String getScopedServiceName()
Return the service name with any scoping applied. The scoped name in general has the following format:[<domain-partition-name>'/'] [<application-scope>':'] <service-name>
- Returns:
- the scoped service name
-
getServiceType
String getServiceType()
Return the service type.- Returns:
- the service type
-
getServiceBuilder
ServiceBuilder getServiceBuilder()
Return theServiceBuilderthat is needed to build a service.- Returns:
- the
ServiceBuilderor null if the scheme does not support services.
-
getEventInterceptorBuilders
List<NamedEventInterceptorBuilder> getEventInterceptorBuilders()
Obtains theListofNamedEventInterceptorBuilders that have been defined for theServiceScheme.Note: For those
ServiceSchemes don't support event interceptors, the returned value must be an empty list.- Returns:
- an
ListoverNamedEventInterceptorBuilders
-
getScopePrefix
static String getScopePrefix(String sScopeName, com.tangosol.application.ContainerContext context)
Return a scope name prefixed with any tenancy name.- Parameters:
sScopeName- the scope name to prefixcontext- an optional container name to use to obtain the domain partition- Returns:
- a scope name with a domain partition prefix, or the plain scope name if there is no domain partition
-
-