⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 distributedcacheservicembean.java

📁 jboss 的官方实例程序
💻 JAVA
字号:
/** JBoss, the OpenSource J2EE webOS** Distributable under LGPL license.* See terms of license at gnu.org.*/package org.jboss.book.security.service;import java.util.Vector;import org.jboss.system.Service;/** A utility mbean that monitors membership of a cluster parition and * establishes a DistributedTimedCachePolicy * @author Scott.Stark@jboss.org * @version $Revision: 1.1 $ */public interface DistributedCacheServiceMBean extends Service{   /** Get the cluster parition name the mbean is monitoring    */   public String getPartitionName();   /** Set the cluster parition name the mbean is monitoring    */   public void setPartitionName(String name);   /** Get the JNDI name under which the CachePolicy is bound into JNDI    */   public String getCacheJndiName();   /** Set the JNDI name under which the CachePolicy is bound into JNDI    */   public void setCacheJndiName(String name);   /** Get the cache timeout (seconds)    */   public int getCacheTimeout();   /** Set the cache timeout (seconds)    */   public void setCacheTimeout(int timeoutSecs);   /** Get the current cluster parition membership info    *@return a Vector of org.javagroups.Address implementations, for example,    *org.javagroups.stack.IpAddress    */   public Vector getClusterNodes();   /** Get a value from the cache policy    */   public Object get(String key);   /** Set a value in the cache policy    */   public void set(String key, String value);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -