public class TimeoutStrategy extends java.lang.Object implements ReleaseStrategy
Modifier and Type | Field and Description |
---|---|
protected int |
timeout
The timeout in minutes after the object can be released.
|
Constructor and Description |
---|
TimeoutStrategy()
Constructor method for i18n purposes only.
|
TimeoutStrategy(int timeout)
Constructor settings the initial values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRelease(ManagedObject object)
Checks whether a factory shared object can be released or not.
|
boolean |
equals(TimeoutStrategy tocheck)
Checks wether a given
PlugInDef instance is equal to this. |
java.lang.String |
toString()
Overrides method
java.lang.Object.toString . |
public TimeoutStrategy() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic TimeoutStrategy(int timeout)
timeout
- The timeout in minutes after the object can be releasedpublic boolean canRelease(ManagedObject object)
canRelease
in interface ReleaseStrategy
object
- The shared object representation to be checkedpublic java.lang.String toString()
java.lang.Object.toString
.
toString
in class java.lang.Object
public boolean equals(TimeoutStrategy tocheck)
PlugInDef
instance is equal to this.
tocheck
- The instance to be comparedPlugInDef
instance to check for equalityCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.