com.waveset.adapter
Class AgentResourceAdapter.AgentAccountSupplier
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentResourceAdapter.AgentAccountSupplier
public AgentResourceAdapter.AgentAccountSupplier(int blockSize)
throws WavesetException
AgentResourceAdapter.AgentAccountSupplier
public AgentResourceAdapter.AgentAccountSupplier(int blockSize,
java.util.Map searchAttrs)
throws WavesetException
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