net.sf.ehcache.Ehcache.getGuid()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中net.sf.ehcache.Ehcache.getGuid()方法的一些代码示例,展示了Ehcache.getGuid()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ehcache.getGuid()方法的具体详情如下:
包路径:net.sf.ehcache.Ehcache
类名称:Ehcache
方法名:getGuid

Ehcache.getGuid介绍

[英]The GUID for this cache instance can be used to determine whether two cache instance references are pointing to the same cache.
[中]此缓存实例的GUID可用于确定两个缓存实例引用是否指向同一缓存。

代码示例

代码示例来源:origin: net.sf.ehcache/ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. return underlyingCache.getGuid();
  6. }

代码示例来源:origin: net.sf.ehcache/ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public final String getGuid() throws RemoteException {
  5. return cache.getGuid();
  6. }

代码示例来源:origin: net.sf.ehcache/ehcache

  1. /**
  2. * An equals method which follows the contract of {@link Object#equals(Object)}
  3. * <p>
  4. * An Cache is equal to another one if it implements Ehcache and has the same GUID.
  5. *
  6. * @param object the reference object with which to compare.
  7. * @return <code>true</code> if this object is the same as the obj
  8. * argument; <code>false</code> otherwise.
  9. * @see #hashCode()
  10. * @see java.util.Hashtable
  11. */
  12. @Override
  13. public boolean equals(Object object) {
  14. if (object == null) {
  15. return false;
  16. }
  17. if (!(object instanceof Ehcache)) {
  18. return false;
  19. }
  20. Ehcache other = (Ehcache) object;
  21. return guid.equals(other.getGuid());
  22. }

代码示例来源:origin: net.sf.ehcache/ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.getGuid();
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public final String getGuid() throws RemoteException {
  5. return cache.getGuid();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. return underlyingCache.getGuid();
  6. }

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. return underlyingCache.getGuid();
  6. }

代码示例来源:origin: net.sf.ehcache/ehcache-explicitlocking

  1. /**
  2. * The GUID for this cache instance can be used to determine whether two cache instance references are pointing to the same cache.
  3. *
  4. * @return the globally unique identifier for this cache instance. This is guaranteed to be unique.
  5. * @since 1.2
  6. */
  7. public String getGuid() {
  8. return cache.getGuid();
  9. }

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. return underlyingCache.getGuid();
  6. }

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public final String getGuid() throws RemoteException {
  5. return cache.getGuid();
  6. }

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public final String getGuid() throws RemoteException {
  5. return cache.getGuid();
  6. }

代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.3

  1. /**
  2. * An equals method which follows the contract of {@link Object#equals(Object)}
  3. *
  4. * @param object the reference object with which to compare.
  5. * @return <code>true</code> if this object is the same as the obj argument; <code>false</code> otherwise. Same for a
  6. * Cache means, the same GUID
  7. * @see #hashCode()
  8. * @see java.util.Hashtable
  9. */
  10. @Override
  11. public boolean equals(Object object) {
  12. if (object == null) { return false; }
  13. if (!(object instanceof Ehcache)) { return false; }
  14. Ehcache other = (Ehcache) object;
  15. return guid.equals(other.getGuid());
  16. }

代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.5.0

  1. /**
  2. * An equals method which follows the contract of
  3. * {@link Object#equals(Object)}
  4. *
  5. * @param object
  6. * the reference object with which to compare.
  7. * @return <code>true</code> if this object is the same as the obj argument;
  8. * <code>false</code> otherwise. Same for a Cache means, the same GUID
  9. * @see #hashCode()
  10. * @see java.util.Hashtable
  11. */
  12. public boolean equals(Object object) {
  13. if (object == null) {
  14. return false;
  15. }
  16. if (!(object instanceof Ehcache)) {
  17. return false;
  18. }
  19. Ehcache other = (Ehcache) object;
  20. return guid.equals(other.getGuid());
  21. }

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.getGuid();
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.getGuid();
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getGuid() {
  5. // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  6. Thread t = Thread.currentThread();
  7. ClassLoader prev = t.getContextClassLoader();
  8. t.setContextClassLoader(this.classLoader);
  9. try {
  10. return this.cache.getGuid();
  11. } finally {
  12. t.setContextClassLoader(prev);
  13. }
  14. }

代码示例来源:origin: rtyley/mini-git-server

  1. public String getGuid() {
  2. return self().getGuid();
  3. }

代码示例来源:origin: com.madgag/mini-git-server-server

  1. public String getGuid() {
  2. return self().getGuid();
  3. }

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

  1. /**
  2. * Returns basic information about the cache.
  3. *
  4. * @param cache The cache
  5. * @param xml The XML Writer
  6. *
  7. * @throws IOException If an error occurs while writing the XML
  8. */
  9. private static void toXML(Ehcache cache, XMLWriter xml) throws IOException {
  10. if (cache == null) return;
  11. xml.openElement("cache", true);
  12. xml.attribute("name", cache.getName());
  13. xml.attribute("guid", cache.getGuid());
  14. xml.closeElement();
  15. }

代码示例来源:origin: org.pageseeder.bastille/pso-bastille

  1. /**
  2. * Returns basic information about the cache.
  3. *
  4. * @param cache The cache
  5. * @param xml The XML Writer
  6. *
  7. * @throws IOException If an error occurs while writing the XML
  8. */
  9. private static void toXML(Ehcache cache, XMLWriter xml) throws IOException {
  10. if (cache == null) return;
  11. xml.openElement("cache", true);
  12. xml.attribute("name", cache.getName());
  13. xml.attribute("guid", cache.getGuid());
  14. xml.openElement("statistics", true);
  15. xml.attribute("enabled", "false");
  16. xml.closeElement();
  17. xml.closeElement();
  18. }

相关文章

Ehcache类方法