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

📄 snmpcontextpoolitem.java

📁 无线网络管理
💻 JAVA
字号:
// NAME//      $RCSfile: SnmpContextPoolItem.java,v $// DESCRIPTION//      [given below in javadoc format]// DELTA//      $Revision: 3.4 $// CREATED//      $Date: 2006/01/17 17:33:04 $// COPYRIGHT//      Westhawk Ltd// TO DO///* * Copyright (C) 2002 - 2006 by Westhawk Ltd * <a href="www.westhawk.co.uk">www.westhawk.co.uk</a> * * Permission to use, copy, modify, and distribute this software * for any purpose and without fee is hereby granted, provided * that the above copyright notices appear in all copies and that * both the copyright notice and this permission notice appear in * supporting documentation. * This software is provided "as is" without express or implied * warranty. * author <a href="mailto:snmp@westhawk.co.uk">Tim Panton</a> */package uk.co.westhawk.snmp.stack;import java.util.*;import uk.co.westhawk.snmp.event.*;/** * This class contains one context and one reference counter. * The reference counter * maintains how many objects reference this context.  * It is a helper class for the context pools, to improve the * synchronisation.  * * @see SnmpContextPool * @see SnmpContextv2cPool * @see SnmpContextv3Pool * @since 4_12 * * @author <a href="mailto:snmp@westhawk.co.uk">Birgit Arkesteijn</a> * @version $Revision: 3.4 $ $Date: 2006/01/17 17:33:04 $ */class SnmpContextPoolItem {    private static final String     version_id =        "@(#)$Id: SnmpContextPoolItem.java,v 3.4 2006/01/17 17:33:04 birgit Exp $ Copyright Westhawk Ltd";    private SnmpContextBasisFace context = null;    private int counter = 0;/** * Constructor. * * @param con The context */SnmpContextPoolItem(SnmpContextBasisFace con){    context = con;    counter = 0;}SnmpContextBasisFace getContext(){    return context;}int getCounter(){    return counter;}void setCounter(int i){    counter = i;}/** * Returns a string representation of the object. * @return The string */public String toString(){    StringBuffer buffer = new StringBuffer("SnmpContextPoolItem[");    buffer.append("context=").append(context.toString());    buffer.append(", counter=").append(counter);    buffer.append("]");    return buffer.toString();}}

⌨️ 快捷键说明

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