blob: 8d352b48acde53714f714cd2ec612fc3ef8e7079 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.axis2.jaxws.utility;
import java.util.concurrent.Executor;
/**
* This is the interface that should be implemented by classes that wish to
* provide Executor instances to the JAX-WS runtime. When the runtime needs an
* Executor instance it will look in the FactoryRegistry for an implementation
* of this factory and retrieve the instance.
*
*/
public interface ExecutorFactory {
public static final int CLIENT_EXECUTOR = 0;
public static final int SERVER_EXECUTOR = 1;
/**
*
* @return
*/
public Executor getExecutorInstance();
/**
*
* @param executorType
* @return
*/
public Executor getExecutorInstance(int executorType);
}