| 
 | Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
   com.tangosol.util.Base
com.tangosol.util.Base
       com.tangosol.net.cache.AbstractBundler.Bundle
com.tangosol.net.cache.AbstractBundler.Bundle
protected abstract class AbstractBundler.Bundle
Bundle represents a unit of optimized execution.
| Field Summary | |
|---|---|
| static int | STATUS_EXCEPTIONAttempt to bundle encountered and exception; the execution has to be de-optimized and performed by individual threads. | 
| static int | STATUS_OPENThis Bundle accepting additional items. | 
| static int | STATUS_PENDINGThis Bundle is closed for accepting additional items and awaiting for the execution results. | 
| static int | STATUS_PROCESSEDThis Bundle is in process of returning the result of execution back to the client. | 
| Constructor Summary | |
|---|---|
| protected | AbstractBundler.Bundle()Default constructor. | 
| Method Summary | |
|---|---|
| protected abstract  void | ensureResults()Obtain results of the bundled requests. | 
| protected  boolean | ensureResults(boolean fBurst)Obtain results of the bundled requests or ensure that the results have already been retrieved. | 
| protected  java.lang.String | formatStatusName(int iStatus)Return a human readable name for the specified status value. | 
| protected  int | getBundleSize()Obtain this bundle size. | 
| protected  boolean | isException()Check whether or not this bundle is in the "exception" state - bundled execution threw an exception and requests have to be un-bundled. | 
| protected  boolean | isMaster()Check whether or not this is a "master" Bundle. | 
| protected  boolean | isOpen()Check whether or not this bundle is open for adding request elements. | 
| protected  boolean | isPending()Check whether or not this bundle is in the "pending" state - awaiting for the execution results. | 
| protected  boolean | isProcessed()Check whether or not this bundle is in the "processed" state - ready to return the result of execution back to the client. | 
| protected  boolean | releaseThread()Release all bundle resources associated with the current thread. | 
|  void | resetStatistics()Reset statistics for this Bundle. | 
| protected  void | setMaster()Designate this Bundle as a "master" bundle. | 
| protected  void | setStatus(int iStatus)Change the status of this Bundle. | 
|  java.lang.String | toString()Provide a human readable description for the Bundle object (for debugging). | 
| protected  boolean | waitForResults(boolean fFirst)Wait until results of bundled requests are retrieved. | 
| Field Detail | 
|---|
public static final int STATUS_OPEN
public static final int STATUS_PENDING
public static final int STATUS_PROCESSED
public static final int STATUS_EXCEPTION
| Constructor Detail | 
|---|
protected AbstractBundler.Bundle()
| Method Detail | 
|---|
protected boolean isOpen()
protected boolean isPending()
protected boolean isProcessed()
protected boolean isException()
protected void setStatus(int iStatus)
iStatus - the new status valueprotected int getBundleSize()
getSizeThreshold method.protected boolean isMaster()
protected void setMaster()
protected abstract void ensureResults()
protected boolean waitForResults(boolean fFirst)
Note that calls to this method must be externally synchronized.
fFirst - true iff this is the first thread entering the bundleprotected boolean ensureResults(boolean fBurst)
fBurst - specifies whether or not the actual results have to be fetched on this thread; this parameter will be true for one and only one thread per bundleprotected boolean releaseThread()
public void resetStatistics()
public java.lang.String toString()
protected java.lang.String formatStatusName(int iStatus)
iStatus - the status value to format| 
 | Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||