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

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

本文整理了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

/**
 * {@inheritDoc}
 */
public String getGuid() {
  return underlyingCache.getGuid();
}

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

/**
 * {@inheritDoc}
 */
public final String getGuid() throws RemoteException {
  return cache.getGuid();
}

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

/**
 * An equals method which follows the contract of {@link Object#equals(Object)}
 * <p>
 * An Cache is equal to another one if it implements Ehcache and has the same GUID.
 *
 * @param object the reference object with which to compare.
 * @return <code>true</code> if this object is the same as the obj
 *         argument; <code>false</code> otherwise.
 * @see #hashCode()
 * @see java.util.Hashtable
 */
@Override
public boolean equals(Object object) {
  if (object == null) {
    return false;
  }
  if (!(object instanceof Ehcache)) {
    return false;
  }
  Ehcache other = (Ehcache) object;
  return guid.equals(other.getGuid());
}

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

/**
* {@inheritDoc}
*/
public String getGuid() {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    return this.cache.getGuid();
  } finally {
    t.setContextClassLoader(prev);
  }
}

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

/**
 * {@inheritDoc}
 */
public final String getGuid() throws RemoteException {
  return cache.getGuid();
}

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

/**
 * {@inheritDoc}
 */
public String getGuid() {
  return underlyingCache.getGuid();
}

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

/**
 * {@inheritDoc}
 */
public String getGuid() {
  return underlyingCache.getGuid();
}

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

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

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

/**
 * {@inheritDoc}
 */
public String getGuid() {
  return underlyingCache.getGuid();
}

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

/**
 * {@inheritDoc}
 */
public final String getGuid() throws RemoteException {
  return cache.getGuid();
}

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

/**
 * {@inheritDoc}
 */
public final String getGuid() throws RemoteException {
  return cache.getGuid();
}

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

/**
 * An equals method which follows the contract of {@link Object#equals(Object)}
 * 
 * @param object the reference object with which to compare.
 * @return <code>true</code> if this object is the same as the obj argument; <code>false</code> otherwise. Same for a
 *         Cache means, the same GUID
 * @see #hashCode()
 * @see java.util.Hashtable
 */
@Override
public boolean equals(Object object) {
 if (object == null) { return false; }
 if (!(object instanceof Ehcache)) { return false; }
 Ehcache other = (Ehcache) object;
 return guid.equals(other.getGuid());
}

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

/**
 * An equals method which follows the contract of
 * {@link Object#equals(Object)}
 * 
 * @param object
 *          the reference object with which to compare.
 * @return <code>true</code> if this object is the same as the obj argument;
 *         <code>false</code> otherwise. Same for a Cache means, the same GUID
 * @see #hashCode()
 * @see java.util.Hashtable
 */
public boolean equals(Object object) {
 if (object == null) {
  return false;
 }
 if (!(object instanceof Ehcache)) {
  return false;
 }
 Ehcache other = (Ehcache) object;
 return guid.equals(other.getGuid());
}

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

/**
* {@inheritDoc}
*/
public String getGuid() {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    return this.cache.getGuid();
  } finally {
    t.setContextClassLoader(prev);
  }
}

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

/**
* {@inheritDoc}
*/
public String getGuid() {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    return this.cache.getGuid();
  } finally {
    t.setContextClassLoader(prev);
  }
}

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

/**
* {@inheritDoc}
*/
public String getGuid() {
  // THIS IS GENERATED CODE -- DO NOT HAND MODIFY!
  Thread t = Thread.currentThread();
  ClassLoader prev = t.getContextClassLoader();
  t.setContextClassLoader(this.classLoader);
  try {
    return this.cache.getGuid();
  } finally {
    t.setContextClassLoader(prev);
  }
}

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

public String getGuid() {
 return self().getGuid();
}

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

public String getGuid() {
 return self().getGuid();
}

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

/**
 * Returns basic information about the cache.
 *
 * @param cache The cache
 * @param xml   The XML Writer
 *
 * @throws IOException If an error occurs while writing the XML
 */
private static void toXML(Ehcache cache, XMLWriter xml) throws IOException {
 if (cache == null) return;
 xml.openElement("cache", true);
 xml.attribute("name", cache.getName());
 xml.attribute("guid", cache.getGuid());
 xml.closeElement();
}

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

/**
 * Returns basic information about the cache.
 *
 * @param cache  The cache
 * @param xml    The XML Writer
 *
 * @throws IOException If an error occurs while writing the XML
 */
private static void toXML(Ehcache cache, XMLWriter xml) throws IOException {
 if (cache == null) return;
 xml.openElement("cache", true);
 xml.attribute("name", cache.getName());
 xml.attribute("guid", cache.getGuid());
 xml.openElement("statistics", true);
 xml.attribute("enabled", "false");
 xml.closeElement();
 xml.closeElement();
}

相关文章

微信公众号

最新文章

更多

Ehcache类方法