BufferJC.java Sample
This topic inludes the source code for the BufferJC.java Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/localControls/asynch/
Sample Source Code
01 package localControls.asynch;
02
03 import com.bea.control.Control;
04
05 /**
06 * Represents the public interface for the BufferJC control.
07 * BufferJCImpl.jcs implements this interface, providing
08 * the control's runtime logic.
09 */
10 public interface BufferJC extends Control
11 {
12 interface Callback
13 {
14 void onResultsReady(String results);
15 }
16
17 /**
18 * The startRequest method starts a timer. When the timer's
19 * onTimeout callback executes, this control's onResultsReady
20 * callback executes, notifying the client that the results are ready.
21 *
22 * @common:operation
23 * @common:message-buffer enable="true"
24 */
25 void startRequest();
26 }
|