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
This interface exposes service related scheme information. Other schemes,
such as
CachingScheme
, extend this class to add support for caches
and maps.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.12.30
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Delimiter for the Application Scope in thescoped service name
static final String
Delimiter for the Domain Partition name in thescoped service name
-
Method Summary
Modifier and TypeMethodDescriptionReturn the service name with any scoping applied.static String
getScopedServiceName
(String sScopeName, String sServiceName) Return a scoped service namestatic String
getScopePrefix
(String sScopeName, com.tangosol.application.ContainerContext context) Return a scope name prefixed with any tenancy name.Return theServiceBuilder
that is needed to build a service.Return the service name.Return the service type.boolean
Return true if the service has auto-start enabled.Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymous
-
Field Details
-
DELIM_DOMAIN_PARTITION
Delimiter for the Domain Partition name in thescoped service name
- See Also:
-
DELIM_APPLICATION_SCOPE
Delimiter for the Application Scope in thescoped service name
- See Also:
-
-
Method Details
-
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 theServiceBuilder
that is needed to build a service.- Returns:
- the
ServiceBuilder
or null if the scheme does not support services.
-
getEventInterceptorBuilders
List<NamedEventInterceptorBuilder> getEventInterceptorBuilders()Obtains theList
ofNamedEventInterceptorBuilder
s that have been defined for theServiceScheme
.Note: For those
ServiceScheme
s don't support event interceptors, the returned value must be an empty list.- Returns:
- an
List
overNamedEventInterceptorBuilder
s
-
getScopePrefix
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
-
getScopedServiceName
Return a scoped service name- Parameters:
sScopeName
- the optional scope namesServiceName
- the service name- Returns:
- the scoped service name
-