public static class SftpSubsystem.Factory extends Object implements NamedFactory<Command>
NamedFactory.Utils
Constructor and Description |
---|
Factory() |
Factory(ExecutorService executorService) |
Factory(ExecutorService executorService,
boolean shutdownOnExit) |
Modifier and Type | Method and Description |
---|---|
Command |
create()
Create a new instance
|
ExecutorService |
getExecutorService() |
String |
getName()
Name of this factory
|
boolean |
isShutdownOnExit() |
public static final String NAME
public Factory()
public Factory(ExecutorService executorService)
executorService
- The ExecutorService
to be used by
the SftpSubsystem
command when starting execution. If
null
then a single-threaded ad-hoc service is used.
Note: the service will not be shutdown when the
subsystem is closed - unless it is the ad-hoc service, which will be
shutdown regardlessFactory(ExecutorService, boolean)}
public Factory(ExecutorService executorService, boolean shutdownOnExit)
executorService
- The ExecutorService
to be used by
the SftpSubsystem
command when starting execution. If
null
then a single-threaded ad-hoc service is used.shutdownOnExit
- If true
the ExecutorService.shutdownNow()
will be called when subsystem terminates - unless it is the ad-hoc
service, which will be shutdown regardlesspublic ExecutorService getExecutorService()
public boolean isShutdownOnExit()
public String getName()
NamedFactory
getName
in interface NamedFactory<Command>
Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.