|
All content with label faq-code-examples+singleton.
Related Labels:
review
, expiry
, namedcache
, javabean
, synchronize
, coherence-cache-config
, cluster
, backing-map
, deployment
, cachestore
, extend
, hibernate
, expiration
, mutex
, troubleshooting
, serialization
, cache
, size
, jmx
,
invocation
, partition
, example
, wan
, keys
, cache-size
, version
, mutext
, shutdown
, optimization
, security
, compatible
more »
( - faq-code-examples
, - singleton
)
How do I implement a Clustered Singleton?
(Coherence FAQ)
following code example demonstrates how to implement a clustered singleton. import com.tangosol.net.CacheFactory; import com.tangosol.net.NamedCache; / Singleton using cache to back it. (Commented out code is from a singleJVM traditional singleton pattern. New code supports stateless session EJB ...
|
|
|