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.binding.file.framework;
11:
12: /**
13: * This interface encapsulates a service request to be executed on a separate
14: * thread. Clients create concrete implementations of this interface and
15: * notify the WorkManager to execute the 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. Command Pattern.
23: */
24: void execute();
25: }
|