com.atlassian.confluence.plugins.gadgets.gadgetspecstore
Class DefaultClusterSafeExternalGadgetSpecStore
java.lang.Object
com.atlassian.confluence.plugins.gadgets.gadgetspecstore.DefaultClusterSafeExternalGadgetSpecStore
- All Implemented Interfaces:
- com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore
public class DefaultClusterSafeExternalGadgetSpecStore
- extends java.lang.Object
- implements com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore
Implementation that delegates all actions but performs mutative actions in the presence of a cluster wide lock.
Method Summary |
com.atlassian.gadgets.directory.spi.ExternalGadgetSpec |
add(java.net.URI gadgetSpecUri)
|
boolean |
contains(java.net.URI gadgetSpecUri)
|
java.lang.Iterable<com.atlassian.gadgets.directory.spi.ExternalGadgetSpec> |
entries()
|
void |
remove(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId externalGadgetSpecId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultClusterSafeExternalGadgetSpecStore
public DefaultClusterSafeExternalGadgetSpecStore(ClusterManager clusterManager,
com.atlassian.bandana.BandanaManager bandanaManager,
ExternalGadgetSpecIdGenerator externalGadgetSpecIdGenerator)
entries
public java.lang.Iterable<com.atlassian.gadgets.directory.spi.ExternalGadgetSpec> entries()
- Specified by:
entries
in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore
add
public com.atlassian.gadgets.directory.spi.ExternalGadgetSpec add(java.net.URI gadgetSpecUri)
- Specified by:
add
in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore
remove
public void remove(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId externalGadgetSpecId)
- Specified by:
remove
in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore
contains
public boolean contains(java.net.URI gadgetSpecUri)
- Specified by:
contains
in interface com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore
Copyright © 2003-2013 Atlassian. All Rights Reserved.