Skip Headers

# Cache Coordination API

Previous

Next

You configure cache coordination using the `Session` methods summarized in Example: Cache Coordination Session API.

You configure how object changes are propagated using the `Descriptor` methods summarized in Example: Cache Coordination Descriptor API.

For more information, see "Configuring Common Coordinated Cache Options".

Cache Coordination Session API

    Session.getCommandManager()
        setShouldPropagateAsynchronously(boolean)
    Session.getCommandManager().getDiscoveryManager()
        setAnnouncementDelay()
        setMulticastGroupAddress()
        setMulticastPort()
        setPacketTimeToLive()
    Session.getCommandManager().getTransportManager()
        setEncryptedPassword()
        setInitialContextFactoryName()
        setLocalContextProperties(Hashtable)
        setNamingServiceType() passing in one of:
            TransportManager.JNDI_NAMING_SERVICE
            TransportManager.REGISTRY_NAMING_SERVICE
        setPassword()
        setRemoteContextProperties(Hashtable)
        setShouldRemoveConnectionOnError()
        setUserName()

Cache Coordination Descriptor API

    setCacheSynchronizationType() passing in one of:
        ClassDescriptor.DO_NOT_SEND_CHANGES
        ClassDescriptor.INVALIDATE_CHANGED_OBJECTS
        ClassDescriptor.SEND_NEW_OBJECTS_WITH_CHANGES
        ClassDescriptor.SEND_OBJECT_CHANGES