
public class ResourceType extends Object implements Cloneable
| Constructor and Description |
|---|
ResourceType()
Creates a new
ResourceType instance. |
| Modifier and Type | Method and Description |
|---|---|
ResourceType |
clone()
Creates and returns a copy of this object.
|
int |
getConnectTimeout()
Gets the timeout value, in milliseconds, to be used when opening communications links to the resource.
|
String |
getLocation()
Gets the value of the
location property. |
int |
getReadTimeout()
Gets the timeout value, in milliseconds, to be used when reading the resource.
|
boolean |
isOptional()
Gets a flag indicating the resource is optional.
|
void |
setConnectTimeout(int value)
Sets the timeout value, in milliseconds, to be used when opening communications links to the resource.
|
void |
setLocation(String value)
Sets the value of the
location property. |
void |
setOptional(boolean value)
Sets the flag indicating the resource is optional.
|
void |
setReadTimeout(int value)
Sets the timeout value, in milliseconds, to be used when reading the resource.
|
String |
toString()
Creates and returns a string representation of the object.
|
public ResourceType()
ResourceType instance.public final String getLocation()
location property.location property.public final void setLocation(String value)
location property.value - The value of the location property.public final boolean isOptional()
true, if the resource is optional; false, if the build fails when the resource is not
found.public final void setOptional(boolean value)
value - true, to flag the resource optional; false, to fail the build when the resource is
not found.public final int getConnectTimeout()
public final void setConnectTimeout(int value)
value - The new timeout value, in milliseconds, to be used when opening communications links to the
resource.public final int getReadTimeout()
public final void setReadTimeout(int value)
value - The new timeout value, in milliseconds, to be used when reading the resource.public ResourceType clone()
Copyright © 2005–2016 The JOMC Project. All rights reserved.