com.waveset.adapter
Class AgentResourceAdapter.AgentAccountSupplier

java.lang.Object
  extended bycom.waveset.adapter.AgentResourceAdapter.AgentAccountSupplier
All Implemented Interfaces:
RASecureConnection.RASecureConnectionAccessor, Supplier
Enclosing class:
AgentResourceAdapter

protected class AgentResourceAdapter.AgentAccountSupplier
extends java.lang.Object
implements Supplier, RASecureConnection.RASecureConnectionAccessor


Field Summary
 
Fields inherited from interface com.waveset.util.Supplier
code_id
 
Constructor Summary
AgentResourceAdapter.AgentAccountSupplier(int blockSize)
           
AgentResourceAdapter.AgentAccountSupplier(int blockSize, java.util.Map searchAttrs)
           
 
Method Summary
 java.lang.Object[] call()
          Obtain the next block of results.
 void close()
          Tell the supplier no further calls will be made.
 int getBlockSize()
          Indicate how many objects are contained in a buffer; this is optimally the maximum size of an array returned from call().
 RASecureConnection getConnection()
           
protected  java.lang.Exception getError()
           
 WavesetResult getResult()
           
protected  boolean hasError()
           
 boolean isComplete()
          Indicate if this Supplier is complete
 void setConnection(RASecureConnection connection)
           
protected  void setError(java.lang.Exception error)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentResourceAdapter.AgentAccountSupplier

public AgentResourceAdapter.AgentAccountSupplier(int blockSize)
                                          throws WavesetException

AgentResourceAdapter.AgentAccountSupplier

public AgentResourceAdapter.AgentAccountSupplier(int blockSize,
                                                 java.util.Map searchAttrs)
                                          throws WavesetException
Method Detail

getBlockSize

public int getBlockSize()
Description copied from interface: Supplier
Indicate how many objects are contained in a buffer; this is optimally the maximum size of an array returned from call().

Specified by:
getBlockSize in interface Supplier
Returns:
the desired buffer size

close

public void close()
Description copied from interface: Supplier
Tell the supplier no further calls will be made. It is guaranteed that this method will be called exactly once.

Specified by:
close in interface Supplier

isComplete

public boolean isComplete()
Description copied from interface: Supplier
Indicate if this Supplier is complete

Specified by:
isComplete in interface Supplier
Returns:
true if there is no more data to fetch using call().

setError

protected void setError(java.lang.Exception error)

getError

protected java.lang.Exception getError()

hasError

protected boolean hasError()

call

public java.lang.Object[] call()
                        throws java.lang.Exception
Description copied from interface: Supplier
Obtain the next block of results. If an Exception is thrown, it will be assumed there is no more data to fetch and close() will be invoked.

Specified by:
call in interface Supplier
Returns:
the array of Objects defining the next block of data
Throws:
java.lang.Exception

getResult

public WavesetResult getResult()

getConnection

public RASecureConnection getConnection()
Specified by:
getConnection in interface RASecureConnection.RASecureConnectionAccessor

setConnection

public void setConnection(RASecureConnection connection)
Specified by:
setConnection in interface RASecureConnection.RASecureConnectionAccessor