|
All content with label cluster+faq-code-examples.
Related Labels:
heap
, failover
, review
, expiry
, coherence-web
, proxy
, namedcache
, javabean
, synchronize
, production-environment
, listeners
, reliability
, availability
, c-w-archive
, mutex
, service
, sessions
, failback
, performance
,
cache
, optimistic
, testing
, size
, jmx
, partition
, faq-coherence-web
, cache-size
, operating-system
, session-cache-config
, mbeans
, replication
, local
, mutext
, hardware
, shutdown
, manageability
, compatible
, security
, events
, best-practices
, session-management
, servletcontext
, coherence-cache-config
, deployment
, backing-map
, cachestore
, extend
, expiration
, hibernate
, core-concept
, scalability
, network
, troubleshooting
, serialization
, serviceability
, httpsessioncontext
, death-detection
, invocation
, example
, wan
, multicast
, faq-config
, keys
, member
, glossary
, federation
, version
, distributed
, update-after-forums-move
, optimization
, singleton
, load-balancing
more »
( - cluster
, - faq-code-examples
)
How do I create a cluster-wide named mutex?
(Coherence FAQ)
create a clusterwide, named mutex, simply lock a key in a cache with an infinite wait time. Note that a key can be locked even though the key does not actually exist in the cache. This example implements a nonrecursive mutex. String sMutexName = "myNamedMutex ...
|
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 ...
|
|
|