com.wiley.posa3.pooling
Class Connection

java.lang.Object
  extended bycom.wiley.posa3.pooling.Connection
All Implemented Interfaces:
Resource

public class Connection
extends java.lang.Object
implements Resource

A Connection is a resource that when no longer needed is returned to a Pool.

Version:
1.0
Author:
Michael Kircher, Prashant Jain

Constructor Summary
Connection()
          Default constuctor.
Connection(Identity id)
          Constuctor.
 
Method Summary
 Identity getId()
          Get the identity of this resource
 void method1()
          Some generic method.
 void method2()
          Some generic method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Default constuctor.


Connection

public Connection(Identity id)
Constuctor.

Parameters:
id - a unique identifier for this connection.
Method Detail

getId

public Identity getId()
Get the identity of this resource

Specified by:
getId in interface Resource
Returns:
The identity of this resource

method1

public void method1()
Some generic method.

Specified by:
method1 in interface Resource

method2

public void method2()
Some generic method.

Specified by:
method2 in interface Resource


Copyright 2004 John Wiley and Sons. All Rights Reserved.