01: // Copyright (c) 2004-2005 Sun Microsystems Inc., All Rights Reserved.
02:
03: /*
04: * Command.java
05: *
06: * SUN PROPRIETARY/CONFIDENTIAL
07: * This software is the proprietary information of Sun Microsystems, Inc.
08: * Use is subject to license terms
09: */
10: package com.sun.jbi.engine.sequencing.framework.threads;
11:
12: /**
13: * This interface encapsulates a service request. Clients create concrete
14: * implementations of this interface and notify the WorkManager to execute the
15: * command in a free thread.
16: *
17: * @author Sun Microsystems, Inc.
18: */
19: public interface Command {
20: /**
21: * This method will contain the code to be executed. WorkManager will
22: * invoke this method in a free thread.
23: */
24: void execute();
25: }
|