📄 poolmetadata.java
字号:
/* * PoolMan Java Object Pooling and Caching Library * Copyright (C) 1999-2001 The Code Studio * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * The full license is located at the root of this distribution * in the LICENSE file. */package com.codestudio.util;import com.codestudio.PoolManConstants;import java.io.Serializable;public class PoolMetaData implements Serializable { /* POOL ATTRIBUTES (set to default beforehand) */ protected String poolname; private int initialObjects = PoolManConstants.DEFAULT_INITIAL_SIZE; private int minimumSize = PoolManConstants.DEFAULT_MIN_SIZE; private int maximumSize = PoolManConstants.DEFAULT_MAX_SIZE; private int objectTimeout = PoolManConstants.DEFAULT_TIMEOUT; private int userTimeout = PoolManConstants.DEFAULT_USERTIMEOUT; private int skimmerFrequency = PoolManConstants.DEFAULT_SKIMMER_SLEEP; private int shrinkBy = PoolManConstants.DEFAULT_SHRINKBY; private boolean emergencyCreates = PoolManConstants.DEFAULT_EMERGENCY_CREATES; private String logfile; private boolean debug = false; /* POOL ID METHODS */ public String getName() { return this.poolname; } public void setName(String name) { this.poolname = name; } /* POOL PROPERTY METHODS */ public int getInitialObjects() { return this.initialObjects; } public void setInitialObjects(int n) { this.initialObjects = n; } public int getMinimumSize() { return this.minimumSize; } public void setMinimumSize(int n) { this.minimumSize = n; } public int getMaximumSize() { return this.maximumSize; } public void setMaximumSize(int n) { this.maximumSize = n; } public int getObjectTimeout() { return this.objectTimeout; } public void setObjectTimeout(int n) { this.objectTimeout = n; } public int getUserTimeout() { return this.userTimeout; } public void setUserTimeout(int n) { this.userTimeout = n; } public int getSkimmerFrequency() { return this.skimmerFrequency; } public void setSkimmerFrequency(int n) { this.skimmerFrequency = n; } public int getShrinkBy() { return this.shrinkBy; } public void setShrinkBy(int n) { this.shrinkBy = n; } public String getLogFile() { return this.logfile; } public void setLogFile(String filename) { this.logfile = filename; } public boolean isDebugging() { return this.debug; } public void setDebugging(boolean b) { this.debug = b; } public boolean isMaximumSoft() { return this.emergencyCreates; } public void setMaximumSoft(boolean b) { this.emergencyCreates = b; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -